Module: Cell::UrlOptions
- Defined in:
- lib/cell/url_options.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.prepended(cls) ⇒ Object
3 4 5 6 |
# File 'lib/cell/url_options.rb', line 3 def self.prepended(cls) cls.after_set :change_url_options, if: :has_cell_host? cls.around_use :change_url_options, if: :has_cell_host? end |
Instance Method Details
#has_cell_host? ⇒ Boolean
8 9 10 |
# File 'lib/cell/url_options.rb', line 8 def has_cell_host? respond_to?(:cell_host) end |