Class: Language

Inherits:
Object
  • Object
show all
Includes:
DataMapper::Resource
Defined in:
lib/dm-is-localizable/storage/language.rb

Class Method Summary collapse

Class Method Details

.[](code) ⇒ Object



16
17
18
19
# File 'lib/dm-is-localizable/storage/language.rb', line 16

def self.[](code)
  return nil if code.nil?
  first :code => code.to_s.gsub('_', '-')
end