Module: Challah::Authorizeable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Authorization
- Defined in:
- lib/challah/concerns/authorizeable.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#user ⇒ Object
9 10 11 12 |
# File 'lib/challah/concerns/authorizeable.rb', line 9 def user return nil unless self.user_id @user ||= self.class.user_model.where(id: self.user_id).first end |