markcatley-validates-constancy-rails-plugin 1.0.20090923 → 1.0.20090924

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/lib/validates_constancy.rb +3 -1
  2. metadata +1 -1
@@ -9,7 +9,9 @@ end
9
9
  ActiveRecord::Base.class_eval { include ConstancyValidation }
10
10
 
11
11
  if Object.const_defined?(:I18n)
12
- I18n.load_path << File.join(File.dirname(__FILE__), '..', 'config', 'locales', 'en.yml')
12
+ Dir[File.join(File.dirname(__FILE__), '..', 'config', 'locales', '*.yml')].each do |f|
13
+ I18n.load_path << f
14
+ end
13
15
  else
14
16
  ActiveRecord::Errors.default_error_messages[:constancy] = "can't be changed"
15
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markcatley-validates-constancy-rails-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.20090923
4
+ version: 1.0.20090924
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nils Jonsson