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.1.10 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.1.9 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.1.8 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.1.7 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.1.6 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.1.5 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.1.4 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.1.3 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.1.2 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.1.1 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.1.0 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.0.18 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.0.17 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.0.16 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.0.15 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.0.14 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.0.13 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.0.12 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.0.11 lib/forge/app/models/i18n_lookup.rb
forge-cli-0.0.10 lib/forge/app/models/i18n_lookup.rb