sunrise-cms 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ module Sunrise
14
14
 
15
15
  # Compare relation by model_type
16
16
  def is_this?(model_type)
17
- name.to_s.downcase == model_type.to_s.downcase
17
+ [name.to_s, resource_name].map(&:downcase).include?(model_type.to_s.downcase)
18
18
  end
19
19
 
20
20
  def relation_name
@@ -1,3 +1,3 @@
1
1
  module Sunrise
2
- VERSION = "0.5.2".freeze
2
+ VERSION = "0.5.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunrise-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-02-04 00:00:00.000000000 Z
13
+ date: 2013-02-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails