Sha256: e2616058fd10782b7434bb1cb1ad16504c2d007516dd933d65baa18bbd93c3bb
Contents?: true
Size: 440 Bytes
Versions: 10
Compression:
Stored size: 440 Bytes
Contents
module Formtastic module LocalizedString def model_name @object.present? ? @object.class.name : @object_name.to_s.classify end protected def localized_string(key, value, type, options = {}) # @private current_builder = respond_to?(:builder) ? builder : self localizer = Formtastic::FormBuilder.i18n_localizer.new(current_builder) localizer.localize(key, value, type, options) end end end
Version data entries
10 entries across 10 versions & 3 rubygems