Skip to content

Commit

Permalink
Merge pull request #58 from stmontgomery/mount_optional
Browse files Browse the repository at this point in the history
Adding 'mount' property to Jasminerice module
  • Loading branch information
bradphelan committed Oct 15, 2012
2 parents 1e038ac + 7baedff commit f896b03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
root :to => "spec#index"
end

Rails.application.routes.draw do
mount Jasminerice::Engine => "/jasmine"
if Jasminerice.mount
Rails.application.routes.draw do
mount Jasminerice::Engine => "/jasmine"
end
end
2 changes: 2 additions & 0 deletions lib/jasminerice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
require 'haml'

module Jasminerice
mattr_accessor :mount
self.mount = true
end

0 comments on commit f896b03

Please sign in to comment.