rest_in_place 2.1 → 2.1.1

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.
@@ -7,7 +7,11 @@ module RestInPlace
7
7
 
8
8
  def self.include_root_in_json?
9
9
  if defined?(Mongoid)
10
- Mongoid.config.include_root_in_json
10
+ if defined? Mongoid::Config
11
+ Mongoid::Config.include_root_in_json
12
+ else
13
+ Mongoid.config.include_root_in_json
14
+ end
11
15
  elsif defined?(ActiveRecord)
12
16
  ActiveRecord::Base.include_root_in_json
13
17
  else
@@ -1,3 +1,3 @@
1
1
  module RestInPlace
2
- VERSION = "2.1"
2
+ VERSION = "2.1.1"
3
3
  end
@@ -5,7 +5,7 @@ require "rest_in_place/version"
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "rest_in_place"
7
7
  s.version = RestInPlace::VERSION
8
- s.date = '2012-07-24'
8
+ s.date = '2012-07-25'
9
9
  s.authors = ["Jan Varwig"]
10
10
  s.email = ["jan@varwig.org"]
11
11
  s.homepage = "http://jan.varwig.org"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest_in_place
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.1'
4
+ version: 2.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-24 00:00:00.000000000 Z
12
+ date: 2012-07-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70251098586200 !ruby/object:Gem::Requirement
16
+ requirement: &70117724071400 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70251098586200
24
+ version_requirements: *70117724071400
25
25
  description: REST in Place is an AJAX Inplace-Editor that talks to RESTful controllers.
26
26
  email:
27
27
  - jan@varwig.org