lib/padrino-gen/generators/components/orms/sequel.rb in padrino-gen-0.9.19 vs lib/padrino-gen/generators/components/orms/sequel.rb in padrino-gen-0.9.20
- old
+ new
@@ -41,10 +41,10 @@
MODEL
# options => { :fields => ["title:string", "body:string"], :app => 'app' }
def create_model_file(name, options={})
model_path = destination_root(options[:app], 'models', "#{name.to_s.underscore}.rb")
- model_contents = SQ_MODEL.gsub(/!NAME!/, name.to_s.downcase.camelize)
+ model_contents = SQ_MODEL.gsub(/!NAME!/, name.to_s.camelize)
create_file(model_path, model_contents)
end
SQ_MIGRATION = (<<-MIGRATION) unless defined?(SQ_MIGRATION)
class !FILECLASS! < Sequel::Migration
\ No newline at end of file