Module: KirguduBase::Models::BasicProperties::User
- Included in:
- Common::PortalUser, Security::Authentication, Security::EmailConfirmation, Security::RestorePasswordCode
- Defined in:
- app/helpers/kirgudu_base/models/basic_properties.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
92 93 94 95 96 97 98 99 |
# File 'app/helpers/kirgudu_base/models/basic_properties.rb', line 92 def self.included(base) base.belongs_to :user, class_name: ::KirguduBase::Security::User, foreign_key: :user_id base.scope :by_user, lambda { |value| base.where(user_id: value) if value } base.class_eval do include InstanceMethods end end |