Sha256: 819bf4e031670e7a544c399e7c0dcf8786278ef6779ddd2ea61ae90ddf829d46

Contents?: true

Size: 294 Bytes

Versions: 24

Compression:

Stored size: 294 Bytes

Contents

class I18nLookup
  def initialize(klass)
    @klass = klass
  end
  
  def fields
    self.class.fields[:tables][@klass.to_s.underscore.pluralize.to_sym]
  end
  
  def self.fields
    @@fields ||= YAML::load(File.open(Rails.root + 'config/i18n_fields.yml')).recursive_symbolize_keys!
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
forge-cli-0.0.9 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.0.8 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.0.7 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.0.6 lib/forge/app/models/i18n_lookup.rb