class Rails::Command::Base
def command_name
Return command name without namespaces.
def command_name @command_name ||= if command = name.to_s.split("::").last command.chomp!("Command") command.underscore end end
def command_name @command_name ||= if command = name.to_s.split("::").last command.chomp!("Command") command.underscore end end