lib/pickle/config.rb in ianwhite-pickle-0.1.14 vs lib/pickle/config.rb in ianwhite-pickle-0.1.15

- old
+ new

@@ -39,10 +39,10 @@ # Usage: map 'me', 'myself', 'I', :to => 'user: "me"' def map(*args) options = args.extract_options! raise ArgumentError, "Usage: map 'search' [, 'search2', ...] :to => 'replace'" unless args.any? && options[:to].is_a?(String) args.each do |search| - self.mappings << OpenStruct.new(:search => search, :replace => options[:to]) + self.mappings << OpenStruct.new(:search => search, :replacement => options[:to]) end end end end \ No newline at end of file