Sha256: fb40bd6e1fef583bf89b06845093472c90a81e51ca9c03205e711d65fcb4b695
Contents?: true
Size: 475 Bytes
Versions: 3
Compression:
Stored size: 475 Bytes
Contents
module TranslatableRecords module Extensions module ActiveRecord module Base extend ActiveSupport::Concern module ClassMethods def translatable? translations.any? end def translations @translations ||= [] end def translate(*attributes) builder = Builder.new(self) builder.define attributes end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems