app/models/form.rb in radiant-forms-extension-2.0.1 vs app/models/form.rb in radiant-forms-extension-3.1.1
- old
+ new
@@ -1,5 +1,11 @@
class Form < ActiveRecord::Base
- validates_presence_of :title
+ default_scope :order => 'forms.title ASC'
+
+ validates_presence_of :title
+ validates_uniqueness_of :title
+
+ belongs_to :created_by, :class_name => 'User'
+ belongs_to :updated_by, :class_name => 'User'
end
\ No newline at end of file