Module: Padrino::Localization::Urls

Defined in:
lib/padrino-localization.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/padrino-localization.rb', line 8

def self.registered(app)
  app.helpers self
  app.extend ::Padrino::Localization::Urls::ClassMethods
  app.instance_eval do
    alias :url_without_locale :url
    alias :url :url_with_locale
    alias :url_for :url_with_locale
  end
end