mongoid-rails 3.0.0 → 3.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 02783fa03be4dd47c2bcf13e519ac1da42626d7b
4
- data.tar.gz: 8e33a29510e747be3e1a2ad7fe486eef5c20a7c5
3
+ metadata.gz: 938a8a7267f6eafce011f4b5c8287cd01d635f0c
4
+ data.tar.gz: 111bff05388d968211405b09c78543140b77bf71
5
5
  SHA512:
6
- metadata.gz: 3fa4ea333049ed5076d32f9bc85b6a837671837eff2421766e14e56442d24fbd62d8bd1ccd17eb953bd26da77b8a546926d239e73dfb75a5379bd3508a763057
7
- data.tar.gz: a1f096e8e27fbdeb32efac515943ac6e0b3bfaf9c30adeaa6cae26c864c2e07f5fe5520a711af1160133a7bdd13d5540583d408e99d487d80a2b5469e22bbc9d
6
+ metadata.gz: 8b793092250e4d6208ffacf660239f6ec43905c32fd12590a0d13ebb153f92c4dc58d05bb5509a4ec8025786786c8483ffcae539ad9b28477464ce6dba98d1f8
7
+ data.tar.gz: e1ccb692a26fe2e6b610ceac7998c7faf64b97dca97427fa60aa004e783ad4f0ef60e2ffbd935db31f85018a84e3fc0262c0ba32c6d63f959d8cd533444e34a9
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ *.gem
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- mongoid-rails is the safest way to use Mongoid with Rails.
1
+ mongoid-rails is the safest way to use MongoDB with Rails.
2
2
 
3
3
 
4
4
  Installation
@@ -7,7 +7,7 @@ Installation
7
7
  Add mongoid-rails to your Gemfile.
8
8
 
9
9
  ```ruby
10
- gem 'mongoid-rails
10
+ gem 'mongoid-rails'
11
11
  ```
12
12
 
13
13
  Then run `bundle install`.
@@ -22,7 +22,7 @@ module MongoidRails
22
22
  def should_permit?(criteria)
23
23
  if criteria.respond_to?(:permitted?)
24
24
  return criteria.permitted?
25
- elsif criteria.respond_to?(:each)
25
+ elsif Hash === criteria || Array === criteria
26
26
  criteria.each do |criterion|
27
27
  return false unless should_permit?(criterion)
28
28
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "mongoid-rails"
3
- s.version = "3.0.0"
3
+ s.version = "3.0.1"
4
4
  s.author = "Conrad Irwin"
5
5
  s.email = "conrad.irwin@gmail.com"
6
6
  s.homepage = "https://github.com/ConradIrwin/mongoid-rails"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Conrad Irwin
@@ -44,6 +44,7 @@ executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
+ - .gitignore
47
48
  - LICENCE.MIT
48
49
  - README.md
49
50
  - lib/mongoid-rails.rb