lib/faceted/presenter.rb in faceted-1.1.1 vs lib/faceted/presenter.rb in faceted-1.2.0

- old
+ new

@@ -22,9 +22,12 @@ end def presents(name, args={}) class_name = args[:class_name] || name.to_s.classify @presents = eval(class_name) + define_method :find_by do + args[:find_by] || :id + end define_method :"#{class_name.downcase}" do object end end