Class: SpellBook::App
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- SpellBook::App
- Defined in:
- lib/spellbook/app.rb
Instance Method Summary collapse
Instance Method Details
#proxy? ⇒ Boolean
7 8 9 |
# File 'lib/spellbook/app.rb', line 7 def proxy? self.proxy end |
#url ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/spellbook/app.rb', line 11 def url if self.proxy? "/#{self.name}/" else "http://localhost:#{self.port}" end end |