lib/conjur/acts_as_resource.rb in conjur-api-2.1.4 vs lib/conjur/acts_as_resource.rb in conjur-api-2.1.5
- old
+ new
@@ -4,10 +4,11 @@
require 'conjur/resource'
Conjur::Resource.new(Conjur::Authz::API.host, self.options)[[ Conjur.account, 'resources', path_escape(resource_kind), path_escape(resource_id) ].join('/')]
end
def resource_kind
- self.class.name.split("::")[1..-1].join('-').downcase
+ require 'active_support/core_ext'
+ self.class.name.split("::")[-1].underscore.split('/').join('-')
end
def resource_id
id
end
\ No newline at end of file