Skip to content

Instantly share code, notes, and snippets.

@indigoviolet
Created December 25, 2017 11:05
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 indigoviolet/10ab4ca652b622c8013da94e589110e8 to your computer and use it in GitHub Desktop.
Save indigoviolet/10ab4ca652b622c8013da94e589110e8 to your computer and use it in GitHub Desktop.
fin blog embed
[2] development (main)> Entry.with_no_db do
[2] development (main)* Entry.first
[2] development (main)* end
CoreExt::ActiveRecord::ConnectionAdapters::ExecutionControl::DBExecutionDisallowed: Database queries are disallowed here: ["SELECT \"entries\".* FROM \"entries\" WHERE \"entries\".\"deleted_at\" IS NULL ORDER BY \"entries\".\"id\" ASC LIMIT $1", "Entry Load", [#<ActiveRecord::Attribute::WithCastValue:0x00562f9063e410 @name="LIMIT", @value_before_type_cast=1, @type=#<ActiveModel::Type::Value:0x00562f852874f8 @precision=nil, @scale=nil, @limit=nil>, @original_attribute=nil>], {:prepare=>true}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment