app/models/cadenero/v1/account.rb in cadenero-0.0.2.b2 vs app/models/cadenero/v1/account.rb in cadenero-0.0.2.b3
- old
+ new
@@ -4,10 +4,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
# Creates an account and assign the provided [Cadenero::User] as owner to the account
# @param [Hash] params list