app/models/cadenero/v1/account.rb in cadenero-0.0.2.b3 vs app/models/cadenero/v1/account.rb in cadenero-0.0.2.b4

- old
+ new

@@ -4,11 +4,13 @@ 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_authentication_token! # Creates an account and assign the provided [Cadenero::User] as owner to the account # @param [Hash] params list # @example # Example for the params JSON: {name: "Testy", subdomain: "test",