ixtlan-guard 0.8.1 → 0.8.2

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.
@@ -4,6 +4,7 @@ module Ixtlan
4
4
  def self.included(base)
5
5
  base.send(:include, InstanceMethods)
6
6
  base.send(:include, GroupsMethod)
7
+ base.send(:before_filter, :authorize)
7
8
  end
8
9
 
9
10
  class Filter
@@ -24,9 +24,6 @@ module Ixtlan
24
24
  options[:logger] = logger unless defined?(Slf4r)
25
25
  FileUtils.mkdir_p(app.config.guards_dir)
26
26
 
27
- controller = ::ApplicationController rescue ::ActionController::Base
28
- controller.send(:before_filter, :authorize)
29
-
30
27
  app.config.guard = Ixtlan::Guard::Guard.new(options)
31
28
  end
32
29
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ixtlan-guard
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.8.1
5
+ version: 0.8.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - mkristian
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-05-12 00:00:00 Z
13
+ date: 2012-05-16 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ixtlan-core