client_side_validations 3.0.10 → 3.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,5 +6,8 @@ require 'client_side_validations/active_record' if defined?(::ActiveRecord)
6
6
  require 'client_side_validations/mongoid' if defined?(::Mongoid)
7
7
  require 'client_side_validations/mongo_mapper' if defined?(::MongoMapper)
8
8
  require 'client_side_validations/action_view'
9
- require 'client_side_validations/middleware' if defined?(::Rails)
9
+ if defined?(::Rails)
10
+ require 'client_side_validations/middleware'
11
+ require 'client_side_validations/engine'
12
+ end
10
13
 
@@ -0,0 +1,6 @@
1
+ module ClientSideValidations
2
+ class Engine < ::Rails::Engine
3
+ config.app_middleware.use ClientSideValidations::Middleware::Validators
4
+ end
5
+ end
6
+
@@ -76,10 +76,5 @@ module ClientSideValidations
76
76
  end
77
77
 
78
78
  end
79
-
80
- class Engine < ::Rails::Engine
81
- config.app_middleware.use ClientSideValidations::Middleware::Validators
82
- end
83
-
84
79
  end
85
80
 
@@ -1,3 +1,3 @@
1
1
  module ClientSideValidations
2
- VERSION = '3.0.10'
2
+ VERSION = '3.0.11'
3
3
  end
@@ -11,5 +11,6 @@ module TestApp
11
11
  end
12
12
 
13
13
  require 'client_side_validations/middleware'
14
+ require 'client_side_validations/engine'
14
15
 
15
16
  TestApp::Application.initialize!
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Rails 3 Client Side Validations - v3.0.10
2
+ * Rails 3 Client Side Validations - v3.0.11
3
3
  * https://github.com/bcardarlela/client_side_validations
4
4
  *
5
5
  * Copyright (c) 2011 Brian Cardarella
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: client_side_validations
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 3.0.10
5
+ version: 3.0.11
6
6
  platform: ruby
7
7
  authors:
8
8
  - Brian Cardarella
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-20 00:00:00 -04:00
13
+ date: 2011-06-22 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -186,6 +186,7 @@ files:
186
186
  - lib/client_side_validations/core_ext.rb
187
187
  - lib/client_side_validations/core_ext/range.rb
188
188
  - lib/client_side_validations/core_ext/regexp.rb
189
+ - lib/client_side_validations/engine.rb
189
190
  - lib/client_side_validations/formtastic.rb
190
191
  - lib/client_side_validations/middleware.rb
191
192
  - lib/client_side_validations/mongo_mapper.rb