Class: AttrObjectGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/attr_object/attr_object_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_attr_object_fileObject



4
5
6
# File 'lib/generators/attr_object/attr_object_generator.rb', line 4

def create_attr_object_file
  template "attr_object.rb", "app/attr_objects/#{lower_class_name}_attr.rb"
end