Skip to content

Commit

Permalink
Merge pull request #398 from EOengineer/348_symbols_with_underscores_…
Browse files Browse the repository at this point in the history
…error

#348: resolves errors when passing a symbol with underscores.
  • Loading branch information
jurre authored Feb 2, 2017
2 parents 66c8a58 + 2e9ae1c commit 2a83186
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 2a83186

Please sign in to comment.