Skip to content

Commit

Permalink
Merge 3bfed84 into 91e9ff5
Browse files Browse the repository at this point in the history
  • Loading branch information
sachin21 committed Mar 8, 2017
2 parents 91e9ff5 + 3bfed84 commit 7cfcb3e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/chanko/controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ module ClassMethods
def inherited(base)
if Config.auto_reload && base.name == "ApplicationController"
base.class_eval do
prepend_before_filter do
Chanko::Loader.cache.clear
if Rails::VERSION::MAJOR >= 5
prepend_before_action do
Chanko::Loader.cache.clear
end
else
prepend_before_filter do
Chanko::Loader.cache.clear
end
end
end
end
Expand Down

0 comments on commit 7cfcb3e

Please sign in to comment.