lib/faceted/presenter.rb in faceted-1.3.1 vs lib/faceted/presenter.rb in faceted-1.3.2

- old
+ new

@@ -20,15 +20,15 @@ def klass @presents end def presents(name, args={}) - class_name = args[:class_name] || name.to_s.classify + class_name = args[:class_name] || name.to_s.classify # LineItem @presents = eval(class_name) define_method :find_by do args[:find_by] || :id end - define_method :"#{class_name.downcase}" do + define_method :"#{name}" do object end end def all