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
Using Rails 6.1.4.4 and ruby '2.6.9' with the latest (1.0.3) Starburst gem, I get the following run time error
undefined method `sanitize' for #Class:0x00007fd49fa3ddd0
Did you mean? sanitize_sql
In models/starburst/announcement.rb
scope :unread_by, lambda {|current_user|
joins("LEFT JOIN starburst_announcement_views ON
starburst_announcement_views.announcement_id = starburst_announcements.id AND
starburst_announcement_views.user_id = #{Announcement.sanitize(current_user.id)}")
.where("starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL")
}
According to this sanitize was removed and replaced.
The text was updated successfully, but these errors were encountered:
Using Rails 6.1.4.4 and ruby '2.6.9' with the latest (1.0.3) Starburst gem, I get the following run time error
undefined method `sanitize' for #Class:0x00007fd49fa3ddd0
Did you mean? sanitize_sql
In models/starburst/announcement.rb
scope :unread_by, lambda {|current_user|
joins("LEFT JOIN starburst_announcement_views ON
starburst_announcement_views.announcement_id = starburst_announcements.id AND
starburst_announcement_views.user_id = #{Announcement.sanitize(current_user.id)}")
.where("starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL")
}
According to this sanitize was removed and replaced.
The text was updated successfully, but these errors were encountered: