lib/lotus/generators/model.rb in lotusrb-0.3.1 vs lib/lotus/generators/model.rb in lotusrb-0.3.2
- old
+ new
@@ -8,10 +8,10 @@
# @since 0.3.1
# @api private
def initialize(command)
super
- @model = app_name
+ @model = Utils::String.new(app_name).underscore
@model_name = Utils::String.new(@model).classify
cli.class.source_root(source)
end