Skip to content

Commit 2ddd200

Browse files
committed
Rubocop -A
1 parent b4eb76e commit 2ddd200

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

app/controllers/movies_controller.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class MoviesController < ApplicationController
2-
before_action :set_movie, only: [:show, :edit, :update, :destroy]
2+
before_action :set_movie, only: [ :show, :edit, :update, :destroy ]
33

44
def new
55
@movie = Movie.new
@@ -56,5 +56,4 @@ def movie_params
5656
def set_movie
5757
@movie = Movie.find(params.fetch(:id))
5858
end
59-
6059
end

config/environments/development.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Rails.application.configure do
44
# Devise action mailer setup
5-
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
5+
config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
66

77
# Allow server to be hosted on any URL
88
config.hosts.clear

config/initializers/devise.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# Configure the e-mail address which will be shown in Devise::Mailer,
2525
# note that it will be overwritten if you use your own mailer class
2626
# with default "from" parameter.
27-
config.mailer_sender = '[email protected]'
27+
config.mailer_sender = "[email protected]"
2828

2929
# Configure the class responsible to send e-mails.
3030
# config.mailer = 'Devise::Mailer'
@@ -36,7 +36,7 @@
3636
# Load and configure the ORM. Supports :active_record (default) and
3737
# :mongoid (bson_ext recommended) by default. Other ORMs may be
3838
# available as additional gems.
39-
require 'devise/orm/active_record'
39+
require "devise/orm/active_record"
4040

4141
# ==> Configuration for any authentication mechanism
4242
# Configure which keys are used when authenticating a user. The default is
@@ -58,12 +58,12 @@
5858
# Configure which authentication keys should be case-insensitive.
5959
# These keys will be downcased upon creating or modifying a user and when used
6060
# to authenticate or find a user. Default is :email.
61-
config.case_insensitive_keys = [:email]
61+
config.case_insensitive_keys = [ :email ]
6262

6363
# Configure which authentication keys should have whitespace stripped.
6464
# These keys will have whitespace before and after removed upon creating or
6565
# modifying a user and when used to authenticate or find a user. Default is :email.
66-
config.strip_whitespace_keys = [:email]
66+
config.strip_whitespace_keys = [ :email ]
6767

6868
# Tell if authentication through request.params is enabled. True by default.
6969
# It can be set to an array that will enable params authentication only for the
@@ -97,7 +97,7 @@
9797
# Notice that if you are skipping storage for all authentication paths, you
9898
# may want to disable generating routes to Devise's sessions controller by
9999
# passing skip: :sessions to `devise_for` in your config/routes.rb
100-
config.skip_session_storage = [:http_auth]
100+
config.skip_session_storage = [ :http_auth ]
101101

102102
# By default, Devise cleans up the CSRF token on authentication to
103103
# avoid CSRF token fixation attacks. This means that, when using AJAX

spec/features/basic_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
describe "User authentication with the Devise gem" do
173173
it "requires sign in before visiting /movies/new with the Devise `before_action :authenticate_user!` method", points: 1 do
174174
visit "/movies/new"
175-
175+
176176
current_url = page.current_path
177177

178178
expect(current_url).to eq("/users/sign_in")

0 commit comments

Comments
 (0)