Add new styles to be checked

This commit is contained in:
Artem Chernikov 2014-07-30 23:43:00 +02:00
parent 6e7e0c2cd3
commit eb127b4f8c
4 changed files with 7 additions and 13 deletions

View file

@ -104,6 +104,10 @@ Style/Blocks:
Style/BracesAroundHashParameters:
Enabled: true
#
Style/CaseEquality:
Enabled: true
AllCops:
Include:
- '**/Rakefile'

View file

@ -5,16 +5,6 @@
# Note that changes in the inspected code, or installation of new
# 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
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/ClassAndModuleChildren:

View file

@ -66,11 +66,11 @@ class EventAttachmentsController < ApplicationController
respond_to do |format|
if @upload.save
format.html {
format.html do
render json: [@upload.to_jq_upload].to_json,
content_type: 'text/html',
layout: false
}
end
format.json do
render json: [@upload.to_jq_upload].to_json, status: :created,
location: conference_proposal_event_attachment_path(@upload.event.conference.short_title, @upload.event, @upload)

View file

@ -7,7 +7,7 @@ class ScheduleController < ApplicationController
@events = @conference.events
@dates = @conference.start_date..@conference.end_date
if @dates === Date.current
if @dates == Date.current
@today = Date.current.strftime("%Y-%m-%d")
else
@today = @conference.start_date.strftime("%Y-%m-%d")