You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's an issue when you try to run show-model on models that have Concerns which use the included helper.
Example model:
module Concerned
extend ActiveSupport::Concern
included do
scope :omg, -> { where scary: true }
end
end
class User < ActiveRecord::Base
include Concerned
end
Pry result:
> show-model User
Exception: ActiveSupport::Concern::MultipleIncludedBlocks: Cannot define multiple 'included' blocks for a Concern
The source of the error is: pry-rails-0.3.4/lib/pry-rails/commands/show_model.rb:17, where it calls Rails.application.eager_load!
It seems like eager_load! is doing something that's including the Concern twice. Here's some more info:
There's an issue when you try to run
show-model
on models that haveConcern
s which use theincluded
helper.Example model:
Pry result:
The source of the error is:
pry-rails-0.3.4/lib/pry-rails/commands/show_model.rb:17
, where it callsRails.application.eager_load!
It seems like
eager_load!
is doing something that's including the Concern twice. Here's some more info:http://stackoverflow.com/questions/24244519/cannot-define-multiple-included-blocks-for-a-concern-activesupportconcern
The text was updated successfully, but these errors were encountered: