Skip to content

Commit

Permalink
add ApplicationRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Jul 28, 2019
1 parent b86514f commit dda970b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 15 deletions.
7 changes: 3 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
AllCops:
TargetRubyVersion: 2.2
Rails:
Enabled: true
require: rubocop-rails
inherit_from: .rubocop_todo.yml

Layout/SpaceInsideHashLiteralBraces:
Enabled: false
Layout/SpaceInsideBlockBraces:
Expand Down
2 changes: 0 additions & 2 deletions lib/enju_ndl.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- encoding: utf-8 -*-

require "enju_ndl/engine"
require 'open-uri'
require 'enju_ndl/ndl_search'
Expand Down
3 changes: 3 additions & 0 deletions spec/dummy/app/models/application_record.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end
2 changes: 1 addition & 1 deletion spec/dummy/app/models/user.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class User < ActiveRecord::Base
class User < ApplicationRecord
devise :database_authenticatable, #:registerable,
:recoverable, :rememberable, :trackable, #, :validatable
:lockable, :lock_strategy => :none, :unlock_strategy => :none
Expand Down
8 changes: 0 additions & 8 deletions spec/dummy/config/initializers/session_store.rb

This file was deleted.

0 comments on commit dda970b

Please sign in to comment.