comply 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 956263eda286d245e46341e583ccf83ed295bcff
4
- data.tar.gz: 1f8283b63e6ee0fdbce9af03840e3e28efa7fd1f
3
+ metadata.gz: b662d78ac11be66ad06d3cb1b4e1bd733070f5bd
4
+ data.tar.gz: 52d6cfcbbde33678af8a62c144cbc901098f30bc
5
5
  SHA512:
6
- metadata.gz: 8b3f21043b8fcf99759b4e427d5cfff6627290d89dc25f57674c9bea18daf1b272469eeffac82f657756cf10ef2b35fbb2eeaa728f54fae7273b8c86e9907b16
7
- data.tar.gz: f8e0e231a61f719e745195489c0264ce50d0e47ec4852d1c934903232a17068d653e6363226a31657cebd27a86bcba3e547913ed18f3b58185f1d060cc037c55
6
+ metadata.gz: 2521a60c65b306b6b00263b7537b01d4e4e3d4d50584e0d3e7b7f383ea02847ac9aaca6c24b225fea5b042d3014cf98f5c744660029a00db1b9abdf9e123036b
7
+ data.tar.gz: 7de391bee6898d2b714dfea02a053ed0883cf5d9e32bfc3e764f6a76cd190b2ca120eb91a03f7aa35a801b5d90dd785e6a8a6ba867cfffe0232d0ea444aa2250
@@ -27,6 +27,9 @@ module Comply
27
27
 
28
28
  def require_model
29
29
  @model = params[:model].classify.constantize if params[:model].present?
30
+ rescue NameError
31
+ @model = nil
32
+ ensure
30
33
  render json: { error: 'Model not found' }, status: 500 unless @model
31
34
  end
32
35
  end
@@ -1,3 +1,3 @@
1
1
  module Comply
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comply
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - '@jacobaweiss'
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-09-10 00:00:00.000000000 Z
15
+ date: 2014-10-06 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: coffee-rails
@@ -134,6 +134,9 @@ executables: []
134
134
  extensions: []
135
135
  extra_rdoc_files: []
136
136
  files:
137
+ - MIT-LICENSE
138
+ - README.md
139
+ - Rakefile
137
140
  - app/assets/javascripts/comply/base_validation_message.js.coffee
138
141
  - app/assets/javascripts/comply/config.js.coffee
139
142
  - app/assets/javascripts/comply/index.js.coffee
@@ -143,12 +146,9 @@ files:
143
146
  - app/controllers/comply/application_controller.rb
144
147
  - app/controllers/comply/validations_controller.rb
145
148
  - config/routes.rb
149
+ - lib/comply.rb
146
150
  - lib/comply/engine.rb
147
151
  - lib/comply/version.rb
148
- - lib/comply.rb
149
- - MIT-LICENSE
150
- - Rakefile
151
- - README.md
152
152
  homepage: http://www.github.com/lumoslabs/comply
153
153
  licenses: []
154
154
  metadata: {}
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  version: '0'
169
169
  requirements: []
170
170
  rubyforge_project:
171
- rubygems_version: 2.0.14
171
+ rubygems_version: 2.4.1
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Inline validation of your ActiveRecord models via the AJAX internets