Developing Discourse Plugins - Part 1 - Create a basic plugin

You can use regular Ruby code to do this in your plugin.rb:

class ::User < ActiveRecord::Base
  validates_presence_of :your_attribute
end
6 Likes