Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
git-svn-id: http://jnewland.com/svn/public/ruby/rails/plugins/resource_this@15 9b6b69f6-dd27-0410-8144-a0f3c56a22ea
  • Loading branch information
jnewland committed Sep 16, 2007
1 parent e94b803 commit 1ceaf1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/resource_this.rb
Expand Up @@ -7,7 +7,8 @@ module ClassMethods
def resource_this(options = {})
options.assert_valid_keys(:class_name, :will_paginate, :sort_method)

singular_name = options[:class_name].downcase.singularize || controller_name.singularize
singular_name = controller_name.singularize
singular_name = options[:class_name].downcase.singularize unless options[:class_name].nil?
class_name = options[:class_name] || singular_name.camelize
plural_name = singular_name.pluralize
will_paginate_index = options[:class_name] || false
Expand Down

0 comments on commit 1ceaf1d

Please sign in to comment.