lib/ixtlan/guard/guard_rails.rb in ixtlan-guard-0.8.3 vs lib/ixtlan/guard/guard_rails.rb in ixtlan-guard-0.9.0
- old
+ new
@@ -114,10 +114,10 @@
def self.guard_filters
@_guard_filters ||= []
end
def self.guard
- Rails.application.config.guard
+ ::Rails.application.config.guard
end
def self.allowed?(action, current_groups, reference = nil)
filter = guard_filters.detect do |f|
f.allowed?(action)