lib/pluck_map/presenter.rb in pluck_map-0.2.0 vs lib/pluck_map/presenter.rb in pluck_map-0.2.1
- old
+ new
@@ -21,10 +21,10 @@
end
def method_missing(attribute_name, *args, &block)
return super if initialized?
options = args.extract_options!
- options[:value] = args.first if args.any?
+ options[:value] = args.first unless args.empty?
attributes.push PluckMap::Attribute.new(attribute_name, options)
:attribute_added
end
def no_map?