lib/ii_policy/railtie.rb in ii_policy-2.0.0 vs lib/ii_policy/railtie.rb in ii_policy-2.1.0
- old
+ new
@@ -7,7 +7,11 @@
end
ActiveSupport.on_load :action_view do
ActionView::Base.send :include, IIPolicy::Helper
end
+
+ ActiveSupport::Reloader.to_prepare do
+ IIPolicy::Lookup.cache.clear
+ end
end
end