Add new styles to be checked
This commit is contained in:
parent
6e7e0c2cd3
commit
eb127b4f8c
4 changed files with 7 additions and 13 deletions
|
|
@ -104,6 +104,10 @@ Style/Blocks:
|
||||||
Style/BracesAroundHashParameters:
|
Style/BracesAroundHashParameters:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
#
|
||||||
|
Style/CaseEquality:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
AllCops:
|
AllCops:
|
||||||
Include:
|
Include:
|
||||||
- '**/Rakefile'
|
- '**/Rakefile'
|
||||||
|
|
|
||||||
|
|
@ -5,16 +5,6 @@
|
||||||
# Note that changes in the inspected code, or installation of new
|
# Note that changes in the inspected code, or installation of new
|
||||||
# versions of RuboCop, may require this file to be generated again.
|
# versions of RuboCop, may require this file to be generated again.
|
||||||
|
|
||||||
# Offense count: 2
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
||||||
Style/BracesAroundHashParameters:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
# Offense count: 1
|
|
||||||
Style/CaseEquality:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
# Offense count: 20
|
# Offense count: 20
|
||||||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||||||
Style/ClassAndModuleChildren:
|
Style/ClassAndModuleChildren:
|
||||||
|
|
|
||||||
|
|
@ -66,11 +66,11 @@ class EventAttachmentsController < ApplicationController
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if @upload.save
|
if @upload.save
|
||||||
format.html {
|
format.html do
|
||||||
render json: [@upload.to_jq_upload].to_json,
|
render json: [@upload.to_jq_upload].to_json,
|
||||||
content_type: 'text/html',
|
content_type: 'text/html',
|
||||||
layout: false
|
layout: false
|
||||||
}
|
end
|
||||||
format.json do
|
format.json do
|
||||||
render json: [@upload.to_jq_upload].to_json, status: :created,
|
render json: [@upload.to_jq_upload].to_json, status: :created,
|
||||||
location: conference_proposal_event_attachment_path(@upload.event.conference.short_title, @upload.event, @upload)
|
location: conference_proposal_event_attachment_path(@upload.event.conference.short_title, @upload.event, @upload)
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ class ScheduleController < ApplicationController
|
||||||
@events = @conference.events
|
@events = @conference.events
|
||||||
@dates = @conference.start_date..@conference.end_date
|
@dates = @conference.start_date..@conference.end_date
|
||||||
|
|
||||||
if @dates === Date.current
|
if @dates == Date.current
|
||||||
@today = Date.current.strftime("%Y-%m-%d")
|
@today = Date.current.strftime("%Y-%m-%d")
|
||||||
else
|
else
|
||||||
@today = @conference.start_date.strftime("%Y-%m-%d")
|
@today = @conference.start_date.strftime("%Y-%m-%d")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue