resource_manager 0.0.5 → 0.0.6

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: ff1ede6e2576d28ac901de727a9822b69b763087
4
- data.tar.gz: 568c1a0621b8af33bbcba4dc97531449c8ce487c
3
+ metadata.gz: 7ad53dffef8de49f7411ff6c7c5b10ece1003ea7
4
+ data.tar.gz: b1c6fde4358f72d06725aceb50b37c6d2f3bbd8b
5
5
  SHA512:
6
- metadata.gz: 5de03bf7c82f827672d667e066f734d7c1ed998c995bc2cb40457f202d1c8632e6c4be85b8e114cbf4dd5dcb5698a3aa4efcb5e4f231b36090f1febf0dcecdb5
7
- data.tar.gz: 09258a64969fbad4b282dbbe04226e698ead60933e6c0deb0ba8cd4eb6265672e2416b0b9380b44be0d7f83d754b1cfd5487e9da72d9f379bff3ab57c2a981e4
6
+ metadata.gz: a33d3ff87a8e9957f40dbc76f3138d6a0d92ec41ef33af107dba922c970fef1b6fd9a0bae379a5870a3ae740eef2c4bbf311b23c2926945d86b261ac077205ba
7
+ data.tar.gz: 7696337e7a5215884484ed847bb0ce8399787a3b392d0a7e786eaf1cc612da842245b38da17172b22a3b63f375885f4d8a30ea1f73db256ea1cb4c47d07661a1
@@ -1,3 +1,3 @@
1
1
  module ResourceManager
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
@@ -96,10 +96,10 @@ module ResourceManager
96
96
  end
97
97
 
98
98
  def item(item_or_id)
99
- if item_or_id.is_a?(model)
100
- item_or_id
101
- else
99
+ if item_or_id.is_a?(Numeric)
102
100
  model.find(item_or_id)
101
+ else
102
+ item_or_id
103
103
  end
104
104
  end
105
105
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resource_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Sinyavsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-03 00:00:00.000000000 Z
11
+ date: 2014-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler