Sha256: 7644ff5c4ea444629e29cedfc25be0394b197fff09f6ba7f5ecd0e87df6a3e69
Contents?: true
Size: 313 Bytes
Versions: 14
Compression:
Stored size: 313 Bytes
Contents
class SettingsonGenerator < Rails::Generators::NamedBase desc "This generator creates a model and his migration" def create_migration generate(:model, "#{name.camelize} name:string value:text") inject_into_class "app/models/#{name.downcase}.rb", name.camelize, "\tinclude Settingson::Base\n" end end
Version data entries
14 entries across 14 versions & 1 rubygems