Created
June 17, 2014 11:07
-
-
Save pjurczynski/814bb5fa8b696de7c74a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FakeModel | |
# … | |
def self.load_from_yml(table_name) | |
YAML.load(File.read(Rails.root.join("config/wpp/#{ table_name }.yml")))[table_name] | |
end | |
# … | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stories: | |
- key: 'amira-fighting-for-egyptian-women' | |
story_img: 'amira-fighting-for-egyptian-women.jpg' | |
author: 'mohamed-hossam-eldin' | |
media: 'video' | |
country: 'Egypt' | |
name: | |
en: 'Amira, Fighting for Egyptian Women' | |
fr: ... | |
ar: ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment