more style fixes
This commit is contained in:
parent
1c1391c69e
commit
e06e0a5ca3
8 changed files with 134 additions and 114 deletions
|
|
@ -1,4 +1,5 @@
|
|||
class Admin::CommercialsController < ApplicationController
|
||||
module Admin
|
||||
class CommercialsController < ApplicationController
|
||||
before_action :set_conference
|
||||
before_action :set_commercial, only: [:edit, :update, :destroy]
|
||||
|
||||
|
|
@ -55,3 +56,4 @@ class Admin::CommercialsController < ApplicationController
|
|||
params[:commercial]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
class Admin::ContactsController < ApplicationController
|
||||
module Admin
|
||||
class ContactsController < ApplicationController
|
||||
before_action :set_conference
|
||||
before_action :set_contact, only: [:show, :edit, :update, :destroy]
|
||||
|
||||
|
|
@ -42,3 +43,4 @@ class Admin::ContactsController < ApplicationController
|
|||
params[:contact]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
module Admin
|
||||
class Admin::EmailsController < ApplicationController
|
||||
class EmailsController < ApplicationController
|
||||
before_filter :verify_organizer
|
||||
|
||||
def update
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
class Api::BaseController < ActionController::Base
|
||||
module Api
|
||||
class BaseController < ActionController::Base
|
||||
protect_from_forgery
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
class Api::V1::ConferencesController < Api::BaseController
|
||||
module Api
|
||||
module V1
|
||||
class ConferencesController < Api::BaseController
|
||||
respond_to :json
|
||||
|
||||
def index
|
||||
|
|
@ -10,3 +12,5 @@ class Api::V1::ConferencesController < Api::BaseController
|
|||
render json: conferences, serializer: ConferencesArraySerializer
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
class Api::V1::RoomsController < Api::BaseController
|
||||
module Api
|
||||
module V1
|
||||
class RoomsController < Api::BaseController
|
||||
respond_to :json
|
||||
|
||||
def index
|
||||
|
|
@ -11,3 +13,5 @@ class Api::V1::RoomsController < Api::BaseController
|
|||
respond_with rooms
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
class Api::V1::TracksController < Api::BaseController
|
||||
module Api
|
||||
module V1
|
||||
class TracksController < Api::BaseController
|
||||
respond_to :json
|
||||
|
||||
def index
|
||||
|
|
@ -11,3 +13,5 @@ class Api::V1::TracksController < Api::BaseController
|
|||
respond_with tracks
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
class Ahoy::Store < Ahoy::Stores::ActiveRecordStore
|
||||
module Ahoy
|
||||
class Store < Ahoy::Stores::ActiveRecordStore
|
||||
# customize here
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue