active_model_serializers_validator 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ module ActiveModel
18
18
  # Set the JSON schema to use for this class
19
19
  def json_schema(value = nil)
20
20
  @_json_schema ||= begin
21
- superclass.primary_key if superclass.respond_to?(:json_schema)
21
+ superclass.json_schema if superclass.respond_to?(:json_schema)
22
22
  end
23
23
 
24
24
  return @_json_schema unless value
@@ -1,7 +1,7 @@
1
1
  module ActiveModel
2
2
  class Serializer
3
3
  module Validator
4
- VERSION = '0.1'
4
+ VERSION = '0.1.1'
5
5
  end
6
6
  end
7
7
  end
@@ -1,5 +1,6 @@
1
1
  require 'json-schema'
2
- require 'active_model/serializer/validator'
2
+ require 'active_model/serializer/validator/mixin'
3
+ require 'active_model/serializer/validator/version'
3
4
 
4
5
  # Inject the mixin in the ActiveModel::Serializer class
5
6
  ActiveModel::Serializer.send :include, ActiveModel::Serializer::Validator::Mixin
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_model_serializers_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -105,9 +105,9 @@ files:
105
105
  - README.md
106
106
  - Rakefile
107
107
  - active_model_serializers_validator.gemspec
108
- - lib/active_model/serializer/validator.rb
109
108
  - lib/active_model/serializer/validator/mixin.rb
110
109
  - lib/active_model/serializer/validator/version.rb
110
+ - lib/active_model_serializers_validator.rb
111
111
  homepage: https://github.com/mirego/active_model_serializers_validator
112
112
  licenses:
113
113
  - MIT
@@ -123,7 +123,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  segments:
125
125
  - 0
126
- hash: 1061494785049302290
126
+ hash: -4488155984166629384
127
127
  required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  version: '0'
133
133
  segments:
134
134
  - 0
135
- hash: 1061494785049302290
135
+ hash: -4488155984166629384
136
136
  requirements: []
137
137
  rubyforge_project:
138
138
  rubygems_version: 1.8.23