lib/avo/base_resource.rb in avo-0.5.0.beta13 vs lib/avo/base_resource.rb in avo-0.5.0.beta14
- old
+ new
@@ -236,10 +236,10 @@
def file_hash
content_to_be_hashed = ""
# resource file hash
- resource_path = Rails.root.join("app", "avo", "resources", "#{self.class.name.underscore}_resource.rb").to_s
+ resource_path = Rails.root.join("app", "avo", "resources", "#{self.class.name.underscore}.rb").to_s
if File.file? resource_path
content_to_be_hashed += File.read(resource_path)
end
# policy file hash