app/models/refinery/contacts/contact.rb in refinerycms-contacts-0.1.1 vs app/models/refinery/contacts/contact.rb in refinerycms-contacts-0.1.2
- old
+ new
@@ -1,8 +1,9 @@
module Refinery
module Contacts
class Contact < Refinery::Core::BaseModel
has_many :mails
+ default_scope order("position DESC")
accepts_nested_attributes_for :mails, :allow_destroy => true
self.table_name = 'refinery_contacts'