lib/happy/extras/resources.rb in happy-0.1.0.pre20 vs lib/happy/extras/resources.rb in happy-0.1.0.pre21

- old
+ new

@@ -90,13 +90,11 @@ render_resource_template 'edit' end end def route - @options = { - :singular_name => options[:class].to_s.tableize.singularize, - :plural_name => options[:class].to_s.tableize.pluralize - }.merge(@options) + options[:singular_name] ||= options[:class].to_s.tableize.singularize + options[:plural_name] ||= options[:class].to_s.tableize.pluralize path options[:plural_name] do get('new') { do_new } path :id do