app/models/concerns/references_named_variable_dates.rb
def with_sorted_variable_date(path, dir = "asc")
      join, *orderings = NamedVariableDate.sort_join_for self, path, dir

      joins(join).order(*orderings)
    end
# Create a relation that idempotently joins against {NamedVariableDate}
# based on the calling model's `:named_variable_dates` association.
#
# @see NamedVariableDate.sort_join_for
# @see .named_variable_date_join_tuple
# @param [String] path
# @param ["asc", "desc"] dir
# @return [ActiveRecord::Relation<ReferencesNamedVariableDates>]
Create a relation that idempotently joins against {NamedVariableDate}
based on the calling model's `:named_variable_dates` association.
Create a relation that idempotently joins against { NamedVariableDate } based on the calling model ' s ` : named_variable_dates ` association .
def with_sorted_variable_date(path, dir = "asc")
      join, *orderings = NamedVariableDate.sort_join_for self, path, dir
      joins(join).order(*orderings)
    end
def with_sorted_variable_date ( path , dir = "asc" ) join , * orderings = NamedVariableDate . sort_join_for self , path , dir joins ( join ) . order ( * orderings ) end
Create a relation that idempotently joins against {NamedVariableDate}
based on the calling model's `:named_variable_dates` association.
Create a relation that idempotently joins against { NamedVariableDate } based on the calling model ' s ` : named_variable_dates ` association .
None
ActiveRecord::Relation<ReferencesNamedVariableDates>
path
dir
None
see
None
see
None