Browse files

Add initializers for Dragonfly setup and note on how to add slots

  • Loading branch information...
1 parent 17c92c0 commit 71b686adaebeacc80a9ce4893fd621ab88c3f2c2 @jordelver jordelver committed Dec 1, 2011
Showing with 25 additions and 0 deletions.
  1. +25 −0 template.rb
View
25 template.rb
@@ -64,6 +64,31 @@ def editor?
RUBY
end
+create_file 'test/dummy/config/initializers/noodall.rb' do
+ <<-RUBY
+# Add your Noodall:Node slots here
+#
+# Noodall::Node.slot :<slot name>, <component name>
+#
+# For example:
+#
+# Noodall::Node.slot :carousel, Carousel
+ RUBY
+end
+
+create_file 'test/dummy/config/initializers/noodall_dragonfly.rb' do
+ <<-RUBY
+# Configuration for processing and encoding
+app = Dragonfly::App[:noodall_assets]
+app.configure_with(:imagemagick)
+app.configure_with(:rails)
+app.datastore = Dragonfly::DataStorage::MongoDataStore.new :db => MongoMapper.database
+
+# For more info about Dragonfly configuration please visit
+# http://markevans.github.com/dragonfly/
+ RUBY
+end
+
inject_into_class 'test/dummy/app/controllers/application_controller.rb', 'ApplicationController' do
<<-RUBY
@@current_user = User.find_or_create_by_full_name("Demo User")

0 comments on commit 71b686a

Please sign in to comment.