class Rails::Generators::Base
def self.base_name
Sets the base_name taking into account the current class namespace.
def self.base_name @base_name ||= begin if base = name.to_s.split('::').first base.underscore end end end
def self.base_name @base_name ||= begin if base = name.to_s.split('::').first base.underscore end end end