Skip to content

Commit

Permalink
allow overriding presenters
Browse files Browse the repository at this point in the history
--HG--
extra : rebase_source : 77739f1f26f9bf0ac96ae58294243a04dd2ee448
  • Loading branch information
Kevin Bullock committed Jul 2, 2012
1 parent 1998794 commit a415c37
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/lib/refinery/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ class CLI < Thor
'dir' => 'models',
'desc' => 'model',
},
'presenter' => {
'glob' => '*.rb',
'dir' => 'presenters',
'desc' => 'presenter',
},
'javascript' => {
'glob' => '*.js{,.*}',
'dir' => 'assets/javascripts',
Expand All @@ -46,7 +51,8 @@ def override(env)
:javascript => %w(admin refinery/site_bar),
:stylesheet => %w(home refinery/site_bar),
:controller => %w(pages),
:model => %w(page refinery/page)
:model => %w(page refinery/page),
:presenter => %w(refinery/page_presenter)
}.each do |type, examples|
examples.each do |example|
puts "rake refinery:override #{type}=#{example}"
Expand Down

0 comments on commit a415c37

Please sign in to comment.