ruby - Authority Gem rails app needs to restart for every change to be reflected? -
hi using authority app add permissioning rails app. reason, have restart app everytime want changes in app/authorizers/ folder reflected.
is standard? why happening?
is there way around this?
even small change changing default true false requires app restart register authory
app/authority/application_authorizer.rb # other authorizers should subclass 1 class applicationauthorizer < authority::authorizer # class method authority::authorizer isn't overridden # call authorizer's default method. # # @param [symbol] adjective; example: `:creatable` # @param [object] user - whatever represents current user in app # @return [boolean] def self.default(adjective, user) # 'whitelist' strategy security: not explicitly allowed # considered forbidden. true end end
thanks
Comments
Post a Comment