Module: ToyAttributes
- Defined in:
- lib/toy-attributes.rb,
lib/toy-attributes/railtie.rb,
lib/toy-attributes/version.rb
Defined Under Namespace
Modules: Methods, Observer, Relations Classes: Engine
Constant Summary collapse
- COLUMN_TYPES =
[:string, :text, :integer, :float, :decimal, :datetime, :timestamp, :time, :date, :binary, :boolean, :references]
- VERSION =
"0.0.6"
Class Method Summary collapse
Class Method Details
.load!(dir_path) ⇒ Object
3 4 5 6 |
# File 'lib/toy-attributes/railtie.rb', line 3 def self.load! dir_path ActiveRecord::Base.extend ToyAttributes::Methods Dir[dir_path].each { |file| load file } end |