lib/happy/ext/resources.rb in happy-0.1.0.pre.3 vs lib/happy/ext/resources.rb in happy-0.1.0.pre.4
- old
+ new
@@ -89,11 +89,11 @@
end
end
def route
@options = {
- singular_name: options[:class].to_s.tableize.singularize,
- plural_name: options[:class].to_s.tableize.pluralize
+ :singular_name => options[:class].to_s.tableize.singularize,
+ :plural_name => options[:class].to_s.tableize.pluralize
}.merge(@options)
path options[:plural_name] do
get('new') { do_new }