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.



27
28
29
# File 'lib/merb_global/controller.rb', line 27

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



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

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