Skip to content

Commit

Permalink
tableize already does a pluralize and a double pluralize on irregular…
Browse files Browse the repository at this point in the history
… nouns like person produces the wrong class name. (person->people->peoples)
  • Loading branch information
anitagraham committed Oct 6, 2010
1 parent 8883735 commit 1148f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gridify/grid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def initialize( klass, *args, &block )
options = args.extract_options! # => args.last.is_a?(Hash) ? args.pop : {}
assert_exclusive_keys( options, :only, :except)

@resource = klass.to_s.tableize.pluralize
@resource = klass.to_s.tableize
@name = args.first || :grid

# non-persistent options
Expand Down

0 comments on commit 1148f15

Please sign in to comment.