diff --git a/config/routes.rb b/config/routes.rb index 8a2c03b..1147b0b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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 diff --git a/lib/jasminerice.rb b/lib/jasminerice.rb index 867f4ff..51bbe2d 100644 --- a/lib/jasminerice.rb +++ b/lib/jasminerice.rb @@ -2,4 +2,6 @@ require 'haml' module Jasminerice + mattr_accessor :mount + self.mount = true end