module ActiveEvent::Command::ClassMethods
Public Instance Methods
form_name(name)
click to toggle source
# File lib/active_event/command.rb, line 23 def form_name(name) define_singleton_method(:model_name) do @_model_name ||= begin namespace = parents.find do |n| n.respond_to?(:use_relative_model_naming?) && n.use_relative_model_naming? end ActiveModel::Name.new(self, namespace, name) end end end