french_rails 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,7 @@ module FrenchRails
3
3
  class Railtie < Rails::Railtie
4
4
  initializer :load_french_rails => :load_application_initializers do
5
5
  require 'french_rails/backend/simple'
6
+ require 'french_rails/action_support/inflections'
6
7
  require 'french_rails/action_view/text_helper'
7
8
  require 'french_rails/i18n'
8
9
  end
@@ -0,0 +1,6 @@
1
+ require 'active_support/inflector'
2
+
3
+ ActiveSupport::Inflector.inflections do |inflect|
4
+ inflect.plural /^(.*)al$/i, '\1aux'
5
+ inflect.singular /(.*)aux$/i, '\1al'
6
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 4
9
- version: 0.2.4
8
+ - 5
9
+ version: 0.2.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Bruno Michel
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-08-22 00:00:00 +02:00
17
+ date: 2010-09-05 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -49,6 +49,7 @@ files:
49
49
  - lib/french_rails/i18n.rb
50
50
  - lib/french_rails/backend/simple.rb
51
51
  - lib/french_rails/action_dispatch/resources_path_names.rb
52
+ - lib/french_rails/action_support/inflections.rb
52
53
  - lib/french_rails/action_view/text_helper.rb
53
54
  - locales/fr_actionpack.yml
54
55
  - locales/fr_activemodel.yml