Sha256: 53cf6c32899813c34cb03583595d36db6d8459a3a2bb4c7cef75df6f0cbdb84c

Contents?: true

Size: 315 Bytes

Versions: 7

Compression:

Stored size: 315 Bytes

Contents

require "traco/attribute_setup"

module Traco
  module Translates
    def translates(*attributes)
      options = attributes.extract_options!
      attributes = attributes.map(&:to_sym)
      AttributeSetup.new(self).set_up(attributes, options)
    end
  end
end

ActiveRecord::Base.send :extend, Traco::Translates

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
traco-3.1.2 lib/traco/translates.rb
traco-3.1.1 lib/traco/translates.rb
traco-3.1.0 lib/traco/translates.rb
traco-3.0.0 lib/traco/translates.rb
traco-2.2.0 lib/traco/translates.rb
traco-2.1.0 lib/traco/translates.rb
traco-2.0.0 lib/traco/translates.rb