lib/class_action.rb in class-action-1.3.0 vs lib/class_action.rb in class-action-1.3.1
- old
+ new
@@ -107,19 +107,19 @@
end
view_context
end
+ def _protected_ivars # :nodoc:
+ super + %i(@_class_action)
+ end
+
private
def _class_action
send(:"_#{action_name}_action_class")
end
-end
-
-if defined?(AbstractController::Rendering::DEFAULT_PROTECTED_INSTANCE_VARIABLES)
- AbstractController::Rendering::DEFAULT_PROTECTED_INSTANCE_VARIABLES << :@_class_action
end
require 'class_action/version'
require 'class_action/action'
\ No newline at end of file