Sha256: b93308caa531191f386b749d0f5e655760625cb4d73dabf14342da800b3b65b3

Contents?: true

Size: 542 Bytes

Versions: 9

Compression:

Stored size: 542 Bytes

Contents

# frozen-string-literal: true
require "mobility/arel/nodes"
require "mobility/arel/visitor"

module Mobility
  module Arel
    class Attribute < ::Arel::Attributes::Attribute
      attr_reader :backend_class
      attr_reader :locale
      attr_reader :attribute_name

      def initialize(relation, column_name, locale, backend_class, attribute_name: nil)
        @backend_class = backend_class
        @locale = locale
        @attribute_name = attribute_name || column_name
        super(relation, column_name)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mobility-0.8.1 lib/mobility/arel.rb
mobility-0.8.0 lib/mobility/arel.rb
mobility-0.7.6 lib/mobility/arel.rb
mobility-0.7.5 lib/mobility/arel.rb
mobility-0.7.4 lib/mobility/arel.rb
mobility-0.7.3 lib/mobility/arel.rb
mobility-0.7.2 lib/mobility/arel.rb
mobility-0.7.1 lib/mobility/arel.rb
mobility-0.7.0 lib/mobility/arel.rb