app/models/cadenero/v1/account.rb in cadenero-0.0.2.b8 vs app/models/cadenero/v1/account.rb in cadenero-0.0.2.b10
- old
+ new
@@ -5,10 +5,9 @@
belongs_to :owner, :class_name => "Cadenero::User"
has_many :members, :class_name => "Cadenero::Member"
has_many :users, :through => :members, :class_name => "Cadenero::User"
accepts_nested_attributes_for :owner
- attr_accessible :name, :subdomain, :owner_attributes, :owner
validates :subdomain, :presence => true, :uniqueness => true
validates :owner, :presence => true
after_create :ensure_auth_token!
# Creates an account and assign the provided [Cadenero::User] as owner to the account