lib/class_action.rb in class-action-1.2.2 vs lib/class_action.rb in class-action-1.3.0

- old
+ new

@@ -22,10 +22,10 @@ module ClassMethods def class_action(*actions, klass: nil) actions.each do |action| - action_class = klass || const_get(action.to_s.camelize) + action_class = klass || const_get("#{action.to_s.camelize}Action") raise ArgumentError, "ClassAction does not support anonymous classes" if action_class.name.nil? class_eval <<-RUBY, __FILE__, __LINE__+1 def _#{action}_action_class @_class_action ||= #{action_class.name}.new self \ No newline at end of file