Sha256: 6dc2eefd0acaf7f6ec41dc121e7f407a44ea1fe507ba778a49db210c0a0a0d95
Contents?: true
Size: 457 Bytes
Versions: 5
Compression:
Stored size: 457 Bytes
Contents
include ActionView::Helpers::TextHelper module Lookylu module Generators class BaseGenerator < Rails::Generators::Base argument :object_name, type: :string, default: 'state' def file_name object_name.underscore end def model_name file_name.camelize end def plural_name file_name.pluralize end def plural_model_name model_name.pluralize end end end end
Version data entries
5 entries across 5 versions & 1 rubygems