Sha256: 03dd0ed28c8ae69dfffd529ec72c5dcf6d4a7e4b15495ed4624bb0f4de5086be
Contents?: true
Size: 427 Bytes
Versions: 2
Compression:
Stored size: 427 Bytes
Contents
module Translatable module RailsAdmin extend ActiveSupport::Concern included do |model| model.rails_admin do object_label_method :pretty_format edit do field :locale field :value end end end class InstanceMethods def pretty_format "#{locale}: #{value}" end end end end TranslatedWord.send :include, Translatable::RailsAdmin
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ar-translatable-0.2.0 | lib/translatable/rails_admin.rb |
ar-translatable-0.1.0 | lib/translatable/rails_admin.rb |