Skip to content
No description, website, or topics provided.
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
Gemfile
LICENSE.txt
README.md
Rakefile
activerecord-implicit-order.gemspec

README.md

ActiveRecord Implicit Order

This gem backports Rails 6 implicit_order_column setting on ActiveRecord class.

Check out this blog post for more detailed info.

Installation

In your Gemfile

gem 'activerecord-implicit-order'

Usage

models/application_record.rb

class ApplicationRecord < ActiveRecord::Base
  ...
  extend ActiveRecordImplicitOrder
end

class User < ApplicationRecord
  ...
  self.implicit_order_column = 'created_at'
end
You can’t perform that action at this time.