style: correct coding style with rubocop linter
This commit is contained in:
@@ -3,8 +3,7 @@
|
||||
# This controller manages all events. It load events for homepage
|
||||
# and display for pagination.
|
||||
class EventsController < ApplicationController
|
||||
|
||||
before_action :authenticate_user!, only: [ ]
|
||||
before_action :authenticate_user!, only: []
|
||||
before_action :set_event, only: [ :show ]
|
||||
|
||||
# Display all events
|
||||
@@ -27,5 +26,4 @@ class EventsController < ApplicationController
|
||||
def set_event
|
||||
@event = Event.includes(:ticket_types).find(params[:id])
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user