constellation-authorization 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,8 +6,8 @@ module Constellation
6
6
  class Engine < Rails::Engine
7
7
  config.constellation = ActiveSupport::OrderedOptions.new unless config.respond_to? :constellation
8
8
  config.constellation.authorization = ActiveSupport::OrderedOptions.new
9
- config.constellation.authorization.mixin = :default
10
- config.constellation.authorization.login_required_redirection = { :controller => 'session', :action => 'new' }
9
+ config.constellation.authorization.implementation = :default
10
+ config.constellation.authorization.login_required_redirection = { :controller => 'user_sessions', :action => 'new' }
11
11
  config.constellation.authorization.permission_denied_redirection = ''
12
12
  config.constellation.authorization.store_location_method = :store_location
13
13
  config.constellation.authorization.current_user_method = :current_user
@@ -16,7 +16,7 @@ module Constellation
16
16
  initializer "constellation.authorization.default" do |app|
17
17
  ActionController::Base.send :include, Constellation::Authorization::Base
18
18
  ActionView::Base.send :include, Constellation::Authorization::Base::ControllerInstanceMethods
19
- if app.config.constellation.authorization.mixin == :default
19
+ if app.config.constellation.authorization.implementation == :default
20
20
  ActiveRecord::Base.send :include,
21
21
  Constellation::Authorization::Default::UserExtensions,
22
22
  Constellation::Authorization::Default::ModelExtensions
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 0
8
- - 0
9
- version: 2.0.0
8
+ - 1
9
+ version: 2.0.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Bill Katz