lib/hermes/builders.rb in hermes-0.5.0 vs lib/hermes/builders.rb in hermes-0.5.1

- old
+ new

@@ -135,15 +135,17 @@ end def method_missing(method, *args, &block) case method.to_s when BUILDER_REGEX + return super unless Builders.has_builder?($2) klass, hash = Builders.retrieve(self, $2, method, args.first) object = klass.new object.assign_attributes hash, :without_protection => true object.send("save#{$3}") if $1 == "create" object when ATTRIBUTES_REGEX + return super unless Builders.has_builder?($1) Builders.retrieve(self, $1, method, args.first)[1] else super end end