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