diff options
author | Philip Arndt <parndt@gmail.com> | 2011-11-09 22:19:07 +1300 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2011-11-09 22:19:07 +1300 |
commit | 36c005ecd112b76d3c9c2d7092f22d6e06755d73 (patch) | |
tree | 23e37055e6c6aa79a9c5285387052acdc708ba30 /db/seeds.rb | |
parent | d18364d359359fa6564ad187d7303f8c167154cd (diff) | |
download | refinerycms-blog-36c005ecd112b76d3c9c2d7092f22d6e06755d73.tar.gz refinerycms-blog-36c005ecd112b76d3c9c2d7092f22d6e06755d73.tar.bz2 refinerycms-blog-36c005ecd112b76d3c9c2d7092f22d6e06755d73.zip |
Refactored everything (models, helpers) into proper namespace of Refinery::Blog. Requires refinery commit 25162b585b9c4023d39fd1a9796140bfa4ecb909
Diffstat (limited to 'db/seeds.rb')
-rw-r--r-- | db/seeds.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/db/seeds.rb b/db/seeds.rb index 19c4370..e0a8b7d 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -17,4 +17,11 @@ if defined?(Refinery::Page) Refinery::Page.default_parts.each do |default_page_part| page.parts.create(:title => default_page_part, :body => nil) end -end
\ No newline at end of file +end# Refinery seeds +Dir[Rails.root.join('db', 'seeds', '*.rb').to_s].each do |file| + puts "Loading db/seeds/#{file.split(File::SEPARATOR).last}" + load(file) +end + +# Added by RefineryCMS Pages engine +Refinery::Pages::Engine.load_seed |