Class: ActiveScaffold::Tableless::Column
- Inherits:
-
ActiveRecord::ConnectionAdapters::Column
- Object
- ActiveRecord::ConnectionAdapters::Column
- ActiveScaffold::Tableless::Column
- Defined in:
- lib/active_scaffold/tableless.rb
Instance Method Summary collapse
-
#initialize(name, default, sql_type = nil, null = true) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(name, default, sql_type = nil, null = true) ⇒ Column
Returns a new instance of Column.
28 29 30 31 |
# File 'lib/active_scaffold/tableless.rb', line 28 def initialize(name, default, sql_type = nil, null = true, **) = ActiveRecord::Base.connection.send :fetch_type_metadata, sql_type super(name, default, , null) end |