Module: Ubiquitously::Account::Authorizable

Included in:
Service::Account
Defined in:
lib/ubiquitously/models/service/account/authorizable.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
# File 'lib/ubiquitously/models/service/account/authorizable.rb', line 4

def self.included(base)
  base.extend ClassMethods
  base.validates_presence_of :username, :password
  base.send :include, InstanceMethods
end