# File lib/declarative_authorization/reader.rb, line 88 def self.load (dsl_files) # TODO cache reader in production mode? reader = new dsl_files = [dsl_files].flatten dsl_files.each do |file| begin reader.parse(File.read(file), file) rescue SystemCallError raise ::Authorization::Reader::DSLFileNotFoundError, "Error reading authorization rules file with path '#{file}'! Please ensure it exists and that it is accessible." end end reader end