Skip to content

Commit

Permalink
Models should extend ApplicationRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Sep 1, 2017
1 parent 1b64d5a commit fc6e112
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,6 @@ Style/PredicateName:
- 'app/models/concerns/blacklight/solr/document.rb'
- 'lib/generators/blacklight/assets_generator.rb'

Rails/ApplicationRecord:
Enabled: false

Rails/Present:
Enabled: false

Expand Down
3 changes: 2 additions & 1 deletion app/models/bookmark.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true
class Bookmark < ActiveRecord::Base

class Bookmark < ApplicationRecord
belongs_to :user, polymorphic: true
belongs_to :document, polymorphic: true

Expand Down
3 changes: 2 additions & 1 deletion app/models/search.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true
class Search < ActiveRecord::Base

class Search < ApplicationRecord
belongs_to :user, optional: true

serialize :query_params
Expand Down

0 comments on commit fc6e112

Please sign in to comment.