more style fixes

This commit is contained in:
Stella Rouzi 2014-08-07 07:42:22 +03:00
parent 1c1391c69e
commit e06e0a5ca3
8 changed files with 134 additions and 114 deletions

View file

@ -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]
@ -55,3 +56,4 @@ class Admin::CommercialsController < ApplicationController
params[:commercial] params[:commercial]
end end
end end
end

View file

@ -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]
@ -42,3 +43,4 @@ class Admin::ContactsController < ApplicationController
params[:contact] params[:contact]
end end
end end
end

View file

@ -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

View file

@ -1,3 +1,5 @@
class Api::BaseController < ActionController::Base module Api
class BaseController < ActionController::Base
protect_from_forgery protect_from_forgery
end end
end

View file

@ -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
@ -10,3 +12,5 @@ class Api::V1::ConferencesController < Api::BaseController
render json: conferences, serializer: ConferencesArraySerializer render json: conferences, serializer: ConferencesArraySerializer
end end
end end
end
end

View file

@ -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
@ -11,3 +13,5 @@ class Api::V1::RoomsController < Api::BaseController
respond_with rooms respond_with rooms
end end
end end
end
end

View file

@ -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
@ -11,3 +13,5 @@ class Api::V1::TracksController < Api::BaseController
respond_with tracks respond_with tracks
end end
end end
end
end

View file

@ -1,3 +1,5 @@
class Ahoy::Store < Ahoy::Stores::ActiveRecordStore module Ahoy
class Store < Ahoy::Stores::ActiveRecordStore
# customize here # customize here
end end
end