module Challah::UserAuthorizable

Protected Instance Methods

authorizations() click to toggle source
# File lib/challah/concerns/user/authorizable.rb, line 13
def authorizations
  return [] if new_record?
  self.class.authorization_model.where(user_id: self.id)
end
clear_authorizations_before_destroy() click to toggle source
# File lib/challah/concerns/user/authorizable.rb, line 18
def clear_authorizations_before_destroy
  authorizations.destroy_all
end