Module: Cheapskate::ApplicationHelper
- Included in:
- ApplicationController
- Defined in:
- app/helpers/cheapskate/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#url_options_for_protocol(protocol) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'app/helpers/cheapskate/application_helper.rb', line 3 def (protocol) prefix = protocol.to_s.upcase { :protocol => Cheapskate::CONFIG["#{prefix}_PROTOCOL"], :host => Cheapskate::CONFIG["#{prefix}_HOST"], :port => Cheapskate::CONFIG["#{prefix}_PORT"] } end |