Skip to content

Instantly share code, notes, and snippets.

@tenderlove
Last active December 24, 2015 03:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tenderlove/6736663 to your computer and use it in GitHub Desktop.
Save tenderlove/6736663 to your computer and use it in GitHub Desktop.
require 'active_record'
class ActiveRecord::Base
establish_connection 'sqlite3:///:memory:'
connection.create_table :rights do |t|
t.string :type
end
end
class Right < ActiveRecord::Base; end
class RightHand < Right; end
p RightHand.unscoped.where_values
p RightHand.unscoped.values[:includes]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment