Method: FacebookGraphr.setup
- Defined in:
- lib/facebook_graphr.rb
.setup(yml_file) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/facebook_graphr.rb', line 14 def setup(yml_file) hash = File.open(yml_file) do |f| YAML::load(f) end self.config = if defined?(Rails) hash[::Rails.env].symbolize_keys else hash.symbolize_keys end end |