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_conference
|
||||||
before_action :set_commercial, only: [:edit, :update, :destroy]
|
before_action :set_commercial, only: [:edit, :update, :destroy]
|
||||||
|
|
||||||
|
|
@ -54,4 +55,5 @@ class Admin::CommercialsController < ApplicationController
|
||||||
#params.require(:commercial).permit(:commercial_id, :commercial_type)
|
#params.require(:commercial).permit(:commercial_id, :commercial_type)
|
||||||
params[:commercial]
|
params[:commercial]
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
class Admin::ContactsController < ApplicationController
|
module Admin
|
||||||
|
class ContactsController < ApplicationController
|
||||||
before_action :set_conference
|
before_action :set_conference
|
||||||
before_action :set_contact, only: [:show, :edit, :update, :destroy]
|
before_action :set_contact, only: [:show, :edit, :update, :destroy]
|
||||||
|
|
||||||
|
|
@ -41,4 +42,5 @@ class Admin::ContactsController < ApplicationController
|
||||||
# params.require(:contact).permit(:social_tag, :email, :facebook, :googleplus, :twitter, :instagram, :public)
|
# params.require(:contact).permit(:social_tag, :email, :facebook, :googleplus, :twitter, :instagram, :public)
|
||||||
params[:contact]
|
params[:contact]
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
module Admin
|
module Admin
|
||||||
class Admin::EmailsController < ApplicationController
|
class EmailsController < ApplicationController
|
||||||
before_filter :verify_organizer
|
before_filter :verify_organizer
|
||||||
|
|
||||||
def update
|
def update
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
class Api::BaseController < ActionController::Base
|
module Api
|
||||||
|
class BaseController < ActionController::Base
|
||||||
protect_from_forgery
|
protect_from_forgery
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
class Api::V1::ConferencesController < Api::BaseController
|
module Api
|
||||||
|
module V1
|
||||||
|
class ConferencesController < Api::BaseController
|
||||||
respond_to :json
|
respond_to :json
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
|
@ -9,4 +11,6 @@ class Api::V1::ConferencesController < Api::BaseController
|
||||||
end
|
end
|
||||||
render json: conferences, serializer: ConferencesArraySerializer
|
render json: conferences, serializer: ConferencesArraySerializer
|
||||||
end
|
end
|
||||||
|
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
|
respond_to :json
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
|
@ -10,4 +12,6 @@ class Api::V1::RoomsController < Api::BaseController
|
||||||
end
|
end
|
||||||
respond_with rooms
|
respond_with rooms
|
||||||
end
|
end
|
||||||
|
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
|
respond_to :json
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
|
@ -10,4 +12,6 @@ class Api::V1::TracksController < Api::BaseController
|
||||||
end
|
end
|
||||||
respond_with tracks
|
respond_with tracks
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
class Ahoy::Store < Ahoy::Stores::ActiveRecordStore
|
module Ahoy
|
||||||
|
class Store < Ahoy::Stores::ActiveRecordStore
|
||||||
# customize here
|
# customize here
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue