lib/rubicure/movie.rb in rubicure-2.1.5 vs lib/rubicure/movie.rb in rubicure-3.0.0

- old
+ new

@@ -4,10 +4,12 @@ # this is record of "config/movies.yml" class Movie < Hash include Hashie::Extensions::MethodAccess class << self + include Rubicure::Concerns::Util + # @return [Array<Symbol>] def names config.keys end @@ -22,10 +24,10 @@ # @return [Hash] content of config/movies.yml def config unless @config config_file = "#{File.dirname(__FILE__)}/../../config/movies.yml" - @config = YAML.load_file(config_file).deep_symbolize_keys + @config = load_yaml_file(config_file).deep_symbolize_keys end @config end # @return [Hash] content of config/movies.yml