Class: Merb::Controller

Inherits:
Object
  • Object
show all
Includes:
Global
Defined in:
lib/merb_global/controller.rb

Class Method Summary collapse

Methods included from Global

DateProvider, MessageProvider, NumericProvider, #_, config

Class Method Details

.language(&block) ⇒ Object

Sets the language of block.

The block should return language or nil if other method should be used to determine the language

Please note that this method is deprecated and the preferred method is locale.



35
36
37
# File 'lib/merb_global/controller.rb', line 35

def self.language(&block)
  self._mg_locale = block
end

.locale(&block) ⇒ Object

Sets the language of block.

The block should return language or nil if other method should be used to determine the language



42
43
44
# File 'lib/merb_global/controller.rb', line 42

def self.locale(&block)
  self._mg_locale = block
end