Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: keeran/declarative_authorization
base: master
head fork: jlindsey/declarative_authorization
compare: master
Checking mergeability… Don't worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/declarative_authorization/authorization.rb
2  lib/declarative_authorization/authorization.rb
@@ -20,7 +20,7 @@ class AuthorizationUsageError < AuthorizationError ; end
# The exception is raised to ensure that the entire rule is invalidated.
class NilAttributeValueError < AuthorizationError; end
- AUTH_DSL_FILES = ["config/authorization_rules.rb"] unless defined? AUTH_DSL_FILES
+ AUTH_DSL_FILES = ["#{Rails.root}/config/authorization_rules.rb"] unless defined? AUTH_DSL_FILES
# Controller-independent method for retrieving the current user.
# Needed for model security where the current controller is not available.

No commit comments for this range

Something went wrong with that request. Please try again.