validates_timeliness 3.0.11 → 3.0.12

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ = 3.0.12 [2012-06-23]
2
+ * Fix load order issue when relying on Railtie to load ActiveRecord extension
3
+
1
4
  = 3.0.11 [2012-04-01]
2
5
  * Change dependency on Timeliness version due to a broken release
3
6
 
@@ -3,7 +3,6 @@ module ValidatesTimeliness
3
3
  class InstallGenerator < Rails::Generators::Base
4
4
  desc "Copy ValidatesTimeliness default files"
5
5
  source_root File.expand_path('../templates', __FILE__)
6
- class_option :template_engine
7
6
 
8
7
  def copy_initializers
9
8
  copy_file 'validates_timeliness.rb', 'config/initializers/validates_timeliness.rb'
@@ -58,6 +58,10 @@ module ValidatesTimeliness
58
58
  # Setup method for plugin configuration
59
59
  def self.setup
60
60
  yield self
61
+ load_orms
62
+ end
63
+
64
+ def self.load_orms
61
65
  extend_orms.each {|orm| require "validates_timeliness/orm/#{orm}" }
62
66
  end
63
67
  end
@@ -3,7 +3,8 @@ module ValidatesTimeliness
3
3
  initializer "validates_timeliness.initialize_active_record", :after => 'active_record.initialize_timezone' do
4
4
  ActiveSupport.on_load(:active_record) do
5
5
  ValidatesTimeliness.default_timezone = ActiveRecord::Base.default_timezone
6
- ValidatesTimeliness.extend_orms = [ :active_record ]
6
+ ValidatesTimeliness.extend_orms << :active_record
7
+ ValidatesTimeliness.load_orms
7
8
  end
8
9
  end
9
10
 
@@ -1,3 +1,3 @@
1
1
  module ValidatesTimeliness
2
- VERSION = '3.0.11'
2
+ VERSION = '3.0.12'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validates_timeliness
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 11
10
- version: 3.0.11
9
+ - 12
10
+ version: 3.0.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Meehan
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-01 01:00:00 +11:00
18
+ date: 2012-06-23 00:00:00 +10:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency