localization_generator 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/templates/localization.rb +4 -7
  2. metadata +3 -3
@@ -77,15 +77,12 @@ module <%= class_name %>
77
77
  end
78
78
  end
79
79
 
80
- # redefinition of ActionMail::Base#render_body, that adds locale suffix to
80
+ # redefinition of ActionMail::Base#render_message, that adds locale suffix to
81
81
  # the template name
82
82
  ActionMailer::Base.module_eval <<-EOL
83
- class << self
84
- private
85
- alias :render_body_old :render_body
86
- def render_body(mailer, method_name)
87
- ActionView::Base.new(template_path, mailer.body).render_file(method_name + "_#{CONFIG[:default_language]}")
88
- end
83
+ private
84
+ def render_message(method_name, body)
85
+ initialize_template_class(body).render_file(method_name + "_#{CONFIG[:default_language]}")
89
86
  end
90
87
  EOL
91
88
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.8
3
3
  specification_version: 1
4
4
  name: localization_generator
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.7
7
- date: 2005-04-24
6
+ version: 1.0.8
7
+ date: 2005-05-31
8
8
  summary: "[Rails] Localization generator."
9
9
  require_paths:
10
10
  - lib
@@ -51,5 +51,5 @@ dependencies:
51
51
  -
52
52
  - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 0.10.0
54
+ version: 0.13.1
55
55
  version: