Skip to content

Commit

Permalink
Removed custom pluralize method in the application helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Stalker committed Jun 7, 2011
1 parent 1ba0a09 commit 7aa1c73
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions app/helpers/application_helper.rb
Expand Up @@ -41,18 +41,6 @@ def save_model_and_continue_editing_button(model)
submit_tag t('buttons.save_and_continue'), :name => 'continue', :class => 'button', :accesskey => "s"
end

# Redefine pluralize() so that it doesn't put the count at the beginning of
# the string.
def pluralize(count, singular, plural = nil)
if count == 1
singular
elsif plural
plural
else
ActiveSupport::Inflector.pluralize(singular)
end
end

def current_item?(item)
if item.tab && item.tab.many? {|i| current_url?(i.relative_url) }
# Accept only stricter URL matches if more than one matches
Expand Down

0 comments on commit 7aa1c73

Please sign in to comment.