adeia 0.11.6 → 0.11.7

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: 0727d2ba6bb0f99fc0b1554944334638d19628af
4
- data.tar.gz: 8ff0154958b54fea7be1164f2ac6bf2952475bfe
3
+ metadata.gz: 1313623c5b03248e41b5fa91117bd4c922149ff2
4
+ data.tar.gz: 6b1375f185b16ed65198a25c5a9ea31a65cb2786
5
5
  SHA512:
6
- metadata.gz: 594ee1692fee0bb00f5e8b7f67d88c126e1a6d40651a4cf8fb517db10aebd35dec59477bf0c6847e216442955806b9e211b6eee54eb3de53bcd8762db1534383
7
- data.tar.gz: 696c41d99cc9e0f210d02b2bbffa045c4b7cc819661dd9621434d1a17e93ffce44182fa470ea56e4ebc57414359c1c9c450aa0b42ebf9454a814558759c1e535
6
+ metadata.gz: 40203a25fa57e62769274340b0e2dfd6aab508743de711734e37c86f05d5b9d06292eeae5c65c1dd81bf1d930d1ed4abc2627a4a1e207d57a8de9197c633065f
7
+ data.tar.gz: 162725a53fbc68a2485d7f30d6fcc1511be4caf942cfeb13130f845db55ccc38484d3431896439865cd4416e5d8348ce993628d8e72960fe52987031cb1869af
@@ -82,10 +82,14 @@ module Adeia
82
82
  private
83
83
 
84
84
  def resource_class
85
- begin
86
- @controller_name.classify.constantize
87
- rescue NameError
88
- @controller_name.classify.demodulize.constantize
85
+ if @resource
86
+ @resource.class
87
+ else
88
+ begin
89
+ @controller_name.classify.constantize
90
+ rescue NameError
91
+ @controller_name.classify.demodulize.constantize
92
+ end
89
93
  end
90
94
  end
91
95
 
data/lib/adeia/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Adeia
2
- VERSION = "0.11.6"
2
+ VERSION = "0.11.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adeia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.6
4
+ version: 0.11.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - khcr