Base policy allows no actions by default Permitted attributes are the default not empty set though
Based on github.com/varvet/pundit/issues/204#issuecomment-60166450 and github.com/varvet/pundit/issues/204#issuecomment-192256023
- MODULE Rhino::Authenticated
- MODULE Rhino::ErrorHandling
- MODULE Rhino::Generators
- MODULE Rhino::OmniauthHelper
- MODULE Rhino::PaperTrailWhodunnit
- MODULE Rhino::Permit
- MODULE Rhino::PolicyHelper
- MODULE Rhino::Resource
- MODULE Rhino::SetCurrentUser
- MODULE Rhino::Sieve
- MODULE Rhino::TestCase
- MODULE Rhino::TestHelperOverride
- MODULE Rhino::TestHelperPolicy
- CLASS Rhino::Account
- CLASS Rhino::AccountController
- CLASS Rhino::AccountPolicy
- CLASS Rhino::ActiveModelExtensionController
- CLASS Rhino::ActiveStorageAttachmentPolicy
- CLASS Rhino::AdminPolicy
- CLASS Rhino::BaseController
- CLASS Rhino::BasePolicy
- CLASS Rhino::CrudController
- CLASS Rhino::CrudPolicy
- CLASS Rhino::Current
- CLASS Rhino::EditorPolicy
- CLASS Rhino::Engine
- CLASS Rhino::Getter
- CLASS Rhino::GlobalPolicy
- CLASS Rhino::InfoGraph
- CLASS Rhino::OpenApiInfo
- CLASS Rhino::ResourceInfoPolicy
- CLASS Rhino::SieveStack
- CLASS Rhino::SimpleController
- CLASS Rhino::SimpleStreamController
- CLASS Rhino::User
- CLASS Rhino::UserPolicy
- CLASS Rhino::ViewerPolicy
- A
- B
- R
- S
VERSION | = | '0.2.0' |
Source: show
# File rhino/rhino/lib/rhino.rb 73 def self.auth_owner 74 @@auth_owner_ref.get 75 end
Set the auth owner reference object to access the mailer.
Source: show
# File rhino/rhino/lib/rhino.rb 78 def self.auth_owner=(class_name) 79 @@auth_owner_ref = ref(class_name) # rubocop:disable Style/ClassVars 80 end
Source: show
# File rhino/rhino/lib/rhino.rb 83 def self.auth_owner_sym 84 auth_owner.to_s.underscore.pluralize.to_sym 85 end
Source: show
# File rhino/rhino/lib/rhino.rb 113 def self.auth_to_base 114 return auth_owner.model_name.i18n_key if same_owner? 115 116 return base_owner_sym if auth_owner.reflections.key?(base_owner_sym.to_s) 117 118 nil 119 end
Source: show
# File rhino/rhino/lib/rhino.rb 87 def self.base_owner 88 @@base_owner_ref.get 89 end
Set the mailer reference object to access the mailer.
Source: show
# File rhino/rhino/lib/rhino.rb 92 def self.base_owner=(class_name) 93 @@base_owner_ref = ref(class_name) # rubocop:disable Style/ClassVars 94 end
Source: show
# File rhino/rhino/lib/rhino.rb 97 def self.base_owner_sym 98 base_owner.to_s.underscore.pluralize.to_sym 99 end
Source: show
# File rhino/rhino/lib/rhino.rb 105 def self.base_to_auth 106 return auth_owner.model_name.i18n_key if same_owner? 107 108 return auth_owner_sym if base_owner.reflections.key?(auth_owner_sym.to_s) 109 110 nil 111 end
Source: show
# File rhino/rhino/lib/rhino.rb 47 def self.ref(arg) 48 ActiveSupport::Dependencies.reference(arg) 49 Getter.new(arg) 50 end
Get the resource classes from the resource reference object.
Source: show
# File rhino/rhino/lib/rhino.rb 55 def self.resource_classes 56 resource_classes ||= resources.map(&:constantize) 57 58 resource_classes 59 end