query_report 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,7 +24,7 @@ module QueryReport
24
24
  end
25
25
 
26
26
  def humanize
27
- options[:as] || I18n.t("activerecord.models.#{options[:model_name]}.#{name}", :default => name.to_s.humanize)
27
+ options[:as] || options[:model_name].classify.constantize.human_attribute_name(name)
28
28
  end
29
29
  end
30
30
 
@@ -1,3 +1,3 @@
1
1
  module QueryReport
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_report
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: