Class: Rails::Generators::GeneratedAttribute

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/custom_mongo/model_generator.rb

Overview

Extend this class to add the “default” field used in the generator.

Instance Attribute Summary collapse

Instance Attribute Details

#defaultObject

Returns the value of attribute default.



9
10
11
# File 'lib/generators/custom_mongo/model_generator.rb', line 9

def default
  @default
end