Skip to content

Commit

Permalink
leave the gem 'hobo' in routes until we get hobo ready for rails 2.1;…
Browse files Browse the repository at this point in the history
… then it can go in environment.rb config.gem 'hobo'
  • Loading branch information
drnic committed May 12, 2008
1 parent 62bfebb commit 0ea4956
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions hobo/bin/hobo
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ Dir.chdir(app_path) do
FileUtils.touch("public/stylesheets/application.css")

puts "\nInitialising Hobo...\n"
File.open("config/initializers/hobo.rb",'w') do |f|
f << "gem 'hobo'\nrequire 'hobo'"
end
command(gen, "hobo --add-routes")

puts "\nInstalling Hobo Rapid and default theme...\n"
Expand Down
2 changes: 2 additions & 0 deletions hobo/lib/hobo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,8 @@ def check_permission(permission, person, object, *args)
::HOBO_ROOT = File.dirname(__FILE__) + "/.."

ActionView::Base.register_template_handler("dryml", Hobo::Dryml::TemplateHandler)
# TODO - Rails 2.1 requires ActionView::Template
# ActionView::Template.register_template_handler("dryml", Hobo::Dryml::TemplateHandler)

class ActionController::Base

Expand Down

0 comments on commit 0ea4956

Please sign in to comment.