app/models/landable/traffic/page_view.rb in landable-1.13.1 vs app/models/landable/traffic/page_view.rb in landable-1.13.2

- old
+ new

@@ -14,10 +14,10 @@ before_create :set_page_revision protected def set_page_revision - page = Landable::Page.where(path: path).select(:published_revision_id).first + page = Landable::Page.find_by(path: path) self.page_revision_id = page.try(:published_revision_id) end end end end