lib/rom/sql/plugin/associates.rb in rom-sql-0.6.1 vs lib/rom/sql/plugin/associates.rb in rom-sql-0.7.0.beta1

- old
+ new

@@ -62,16 +62,14 @@ # @option options [Array] :key The association keys # # @api public def associates(name, options) if associations.include?(name) - raise( - ArgumentError, + raise ArgumentError, "#{name} association is already defined for #{self.class}" - ) end - option :association, reader: true, default: -> command { options } + option :association, reader: true, default: -> _command { options } include InstanceMethods associations << name end end