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
Should I make pull request that if you have some_scope then it's not working. Example:
class Video < ActiveRecord::Base
belongs_to_array_in_many :playlists # optional
scope :archived, ->{where(archived: true)}
end
If I run Playlist.first.videos.archived, then I get an error. Fix for that will be:
module HasArrayOf
class AssociatedArray::Relation
attr_reader :relation
def method_missing(m, *args, &block)
relation.public_send(m, *args, &block)
end
end
end
Should I make pull request for this problem?
The text was updated successfully, but these errors were encountered:
Should I make pull request that if you have some_scope then it's not working. Example:
If I run Playlist.first.videos.archived, then I get an error. Fix for that will be:
Should I make pull request for this problem?
The text was updated successfully, but these errors were encountered: