Class: JRuby::Rack::RailsGrizzlyHelper
- Inherits:
-
GrizzlyHelper
- Object
- GrizzlyHelper
- JRuby::Rack::RailsGrizzlyHelper
- Defined in:
- lib/jruby/rack/rails.rb
Instance Attribute Summary collapse
-
#context_root ⇒ Object
Returns the value of attribute context_root.
-
#rails_env ⇒ Object
Returns the value of attribute rails_env.
-
#rails_root ⇒ Object
Returns the value of attribute rails_root.
Attributes inherited from GrizzlyHelper
Instance Method Summary collapse
-
#initialize(glassfish_config = nil) ⇒ RailsGrizzlyHelper
constructor
A new instance of RailsGrizzlyHelper.
- #options ⇒ Object
Methods inherited from GrizzlyHelper
instance, #logdev, #logger, #setup_gems
Constructor Details
#initialize(glassfish_config = nil) ⇒ RailsGrizzlyHelper
Returns a new instance of RailsGrizzlyHelper.
9 10 11 12 13 14 |
# File 'lib/jruby/rack/rails.rb', line 9 def initialize(glassfish_config = nil) super @rails_root = @glassfish_config.app_root @rails_env = @glassfish_config.environment @context_root = @glassfish_config.context_root end |
Instance Attribute Details
#context_root ⇒ Object
Returns the value of attribute context_root.
7 8 9 |
# File 'lib/jruby/rack/rails.rb', line 7 def context_root @context_root end |
#rails_env ⇒ Object
Returns the value of attribute rails_env.
7 8 9 |
# File 'lib/jruby/rack/rails.rb', line 7 def rails_env @rails_env end |
#rails_root ⇒ Object
Returns the value of attribute rails_root.
7 8 9 |
# File 'lib/jruby/rack/rails.rb', line 7 def rails_root @rails_root end |
Instance Method Details
#options ⇒ Object
16 17 18 |
# File 'lib/jruby/rack/rails.rb', line 16 def {:public => public_root, :root => rails_root, :environment => rails_env, :prefix=>context_root} end |