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

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -