Skip to content

Commit

Permalink
#348: resolves errors when passing a symbol with underscores.
Browse files Browse the repository at this point in the history
  • Loading branch information
EOengineer committed Feb 1, 2017
1 parent 66c8a58 commit 2e9ae1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/cache_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def cache_keys_for_all(*klass_names)
end

def cache_key_for_all(klass_name)
klass = klass_name.to_s.singularize.capitalize.constantize
klass = klass_name.to_s.singularize.camelize.constantize
count = klass.count
max_updated_at = klass.maximum(:updated_at).try(:utc).try(:to_s, :number)
page = params[:page]
Expand Down

0 comments on commit 2e9ae1c

Please sign in to comment.