Method: Rails::Generator::GeneratedAttribute#initialize
- Defined in:
- lib/rails_generator/generated_attribute.rb
#initialize(name, type) ⇒ GeneratedAttribute
Returns a new instance of GeneratedAttribute.
8 9 10 11 |
# File 'lib/rails_generator/generated_attribute.rb', line 8 def initialize(name, type) @name, @type = name, type.to_sym @column = ActiveRecord::ConnectionAdapters::Column.new(name, nil, @type) end |