Method: Artisanal::Model::Builder#included
- Defined in:
- lib/artisanal/model/builder.rb
#included(base) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/artisanal/model/builder.rb', line 13 def included(base) base.extend Dry::Initializer[undefined: config.undefined?] base.extend Artisanal::Model::DSL # Make attributes mutable define_writers if config.writable? # Store artisanal model config base.artisanal_model.config = config end |