Permalink
Browse files

Adds documentation link and also corrects generator to generate initi…

…alizer.
  • Loading branch information...
1 parent 75d0f2b commit ed30c88ae931d947024c96de5ee0829a1e7fe025 Rob Yurkowski committed Mar 5, 2012
Showing with 9 additions and 0 deletions.
  1. +8 −0 lib/generators/refinery/portfolio_generator.rb
  2. +1 −0 lib/refinery/portfolio/configuration.rb
@@ -1,6 +1,12 @@
module Refinery
class PortfolioGenerator < Rails::Generators::Base
+ source_root File.expand_path("../templates", __FILE__)
+
+ def generate_portfolio_initializer
+ template "config/initializers/refinery/portfolio.rb.erb", File.join(destination_root, "config", "initializers", "refinery", "portfolio.rb")
+ end
+
def rake_db
rake("refinery_portfolio:install:migrations")
end
@@ -9,6 +15,8 @@ def append_load_seed_data
create_file 'db/seeds.rb' unless File.exists?(File.join(destination_root, 'db', 'seeds.rb'))
append_file 'db/seeds.rb', :verbose => true do
<<-EOH
+
+# Added by Refinery CMS Portfolio Engine
Refinery::Portfolio::Engine.load_seed
EOH
end
@@ -7,6 +7,7 @@ module Portfolio
self.items_per_page = 20
self.cover_image_thumb_size = '300x200'
+ # Be sure to see http://thiagosf.net/projects/jquery/skitter/ for terrible documentation.
self.skitter_options = {
:interval => 5000, # Duration of slides in ms
:animation => :circles, # Animation to use

0 comments on commit ed30c88

Please sign in to comment.