uses before_action instead of before_filter

before_filter is deprecated
This commit is contained in:
Juanjo Bazán
2016-07-18 14:50:28 +02:00
parent 0772c8a5ca
commit dc7ee45766

View File

@@ -3,7 +3,7 @@ module FeatureFlags
class_methods do
def feature_flag(name, *options)
before_filter(*options) do
before_action(*options) do
check_feature_flag(name)
end
end