Sha256: c1e21926c823bc757e075bb60aace07508387bd79bb745e41cf55f6f31b059a0
Contents?: true
Size: 927 Bytes
Versions: 8
Compression:
Stored size: 927 Bytes
Contents
# encoding: utf-8 require 'code-box/code_attribute' require 'code-box/acts_as_code' module CodeBox Config = { i18n_model_segment: :activerecord, i18n_empty_options_key: 'shared.options.pls_select', test_method_prefix: '', } def i18n_model_segment=(segment) Config[:i18n_model_segment] = segment end def i18n_model_segment Config[:i18n_model_segment] end def i18n_empty_options_key=(key) Config[:i18n_empty_options_key] = key end def i18n_empty_options_key Config[:i18n_empty_options_key] end def test_method_prefix=(prefix) Config[:test_method_prefix] = (prefix.nil? ? '' : prefix.strip) end def test_method_prefix Config[:test_method_prefix] end module_function :i18n_model_segment, :i18n_model_segment=, :i18n_empty_options_key, :i18n_empty_options_key=, :test_method_prefix, :test_method_prefix= end
Version data entries
8 entries across 8 versions & 1 rubygems