i18n_rails_helpers 1.4.3 → 1.4.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,7 +36,7 @@ module I18nHelpers
36
36
  # t_model(Account.new) => 'Konto'
37
37
  # t_model => 'Konto' # when called in patients_controller views
38
38
  #
39
- def t_model(model = nil, options = {})
39
+ def t_model(model = nil)
40
40
  if model.is_a? Class
41
41
  model_name = model.name.underscore
42
42
  elsif model.nil?
@@ -44,10 +44,7 @@ module I18nHelpers
44
44
  else
45
45
  model_name = model.class.name.underscore
46
46
  end
47
-
48
- options[:scope] = [:activerecord, :models]
49
- options[:count] ||= 1
50
- I18n::translate(model_name, *options)
47
+ I18n::translate(model_name, :scope => [:activerecord, :models])
51
48
  end
52
49
 
53
50
  # Returns translated title for current +action+ on +model+.
@@ -1,3 +1,3 @@
1
1
  module I18nRailsHelpers
2
- VERSION = "1.4.3"
2
+ VERSION = "1.4.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_rails_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: