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

Namespace
Methods
A
B
R
S
Constants
VERSION = '0.2.0'
 
Class Public methods
auth_owner()
   # File rhino/rhino/lib/rhino.rb
73 def self.auth_owner
74   @@auth_owner_ref.get
75 end
auth_owner=(class_name)

Set the auth owner reference object to access the mailer.

   # 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
auth_owner_sym()
   # File rhino/rhino/lib/rhino.rb
83 def self.auth_owner_sym
84   auth_owner.to_s.underscore.pluralize.to_sym
85 end
auth_to_base()
    # 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
base_owner()
   # File rhino/rhino/lib/rhino.rb
87 def self.base_owner
88   @@base_owner_ref.get
89 end
base_owner=(class_name)

Set the mailer reference object to access the mailer.

   # 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
base_owner_sym()
   # File rhino/rhino/lib/rhino.rb
97 def self.base_owner_sym
98   base_owner.to_s.underscore.pluralize.to_sym
99 end
base_to_auth()
    # 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
ref(arg)
   # File rhino/rhino/lib/rhino.rb
47 def self.ref(arg)
48   ActiveSupport::Dependencies.reference(arg)
49   Getter.new(arg)
50 end
resource_classes()

Get the resource classes from the resource reference object.

   # File rhino/rhino/lib/rhino.rb
55 def self.resource_classes
56   resource_classes ||= resources.map(&:constantize)
57 
58   resource_classes
59 end
same_owner?()
    # File rhino/rhino/lib/rhino.rb
101 def self.same_owner?
102   base_owner == auth_owner
103 end
setup()

Default way to set up Rhino

    # File rhino/rhino/lib/rhino.rb
122 def self.setup
123   yield self
124 end