forked from stffn/declarative_authorization
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes a few issues with railsengine.rb
a) Authorization::Engine is already defined in authorization.rb. Therefore, we must (I believe) rename the Authorization::Engine rail tie. b) authorization.rb required railsengine.rb which required lib/declarative_authorization.rb. This dependency chain made it impossible to select which pieces from declarative auth you want (if you're not using ActiveRecord, loading in_model.rb will fail, and lib/declarative_authorization.rb makes such an attempt). Signed-off-by: Steffen Bartsch <sbartsch@tzi.org>
- Loading branch information
1 parent
bbb8acb
commit 3d7dce3
Showing
3 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
require 'declarative_authorization' | ||
require 'rails' | ||
|
||
module Authorization | ||
class Engine < Rails::Engine | ||
class RailsEngine < Rails::Engine | ||
end | ||
end |