lib/koine/attributes.rb in koine-attributes-0.1.3 vs lib/koine/attributes.rb in koine-attributes-0.1.4

- old
+ new

@@ -98,10 +98,12 @@ # location = Location.new(lat: 1, lon: 2) # new_location = location.with_lon(3) # module Koine module Attributes + autoload :Attributes, 'koine/attributes/attributes' + module Adapter autoload :Boolean, 'koine/attributes/adapter/boolean' autoload :Date, 'koine/attributes/adapter/date' autoload :Time, 'koine/attributes/adapter/time' autoload :Float, 'koine/attributes/adapter/float' @@ -124,9 +126,11 @@ initializer_options = options[:initializer] initializer_options = {} unless initializer_options.is_a?(Hash) @builder.build_constructor(initializer_options) + else + @builder.build_lazy_attributes end @builder = nil end