Module: Challah::ActiveRecordExtensions::ClassMethods

Defined in:
lib/challah/active_record_extensions.rb

Instance Method Summary collapse

Instance Method Details

#challah_authorizationObject



12
13
14
15
# File 'lib/challah/active_record_extensions.rb', line 12

def challah_authorization
  ActiveSupport::Deprecation.warn("#{ self.to_s }.challah_authorization is deprecated and will be removed in future versions, use `include Challah::Authorizeable` instead")
  self.send(:include, Challah::Authorizeable)
end

#challah_userObject



17
18
19
20
# File 'lib/challah/active_record_extensions.rb', line 17

def challah_user
  ActiveSupport::Deprecation.warn("#{ self.to_s }.challah_user is deprecated and will be removed in future versions, use `include Challah::Userable` instead")
  self.send(:include, Challah::Userable)
end