class RailsAgnosticModels::ArelTranslator::Order

Attributes

order[RW]

Public Class Methods

new(order) click to toggle source
# File lib/rails_agnostic_models/arel_translator/order.rb, line 6
def initialize(order)
  @order = order
end

Public Instance Methods

translate!() click to toggle source
# File lib/rails_agnostic_models/arel_translator/order.rb, line 10
def translate!
  "order(\"#{self.order}\")"
end