write in 1 single line actions with no body

Conflicts:
	app/controllers/admin/contacts_controller.rb
This commit is contained in:
Stella Rouzi 2014-08-12 22:27:02 +03:00
parent f5081813d9
commit f169049003
10 changed files with 11 additions and 22 deletions

View file

@ -21,11 +21,9 @@ module Admin
end end
end end
def new def new; end
end
def edit def edit; end
end
def update def update
if @campaign.update_attributes(params[:campaign]) if @campaign.update_attributes(params[:campaign])

View file

@ -11,8 +11,7 @@ module Admin
@commercial = @conference.commercials.build @commercial = @conference.commercials.build
end end
def edit def edit; end
end
def create def create
@commercial = @conference.commercials.build(commercial_params) @commercial = @conference.commercials.build(commercial_params)

View file

@ -124,8 +124,7 @@ module Admin
redirect_back_or_to(admin_conference_event_path(@conference.short_title, @event)) redirect_back_or_to(admin_conference_event_path(@conference.short_title, @event))
end end
def create def create; end
end
def accept def accept
send_mail = @event.conference.email_settings.send_on_accepted send_mail = @event.conference.email_settings.send_on_accepted

View file

@ -8,8 +8,7 @@ module Admin
authorize! :update, Lodging.new(venue_id: @venue.id) authorize! :update, Lodging.new(venue_id: @venue.id)
end end
def show def show; end
end
def update def update
if @venue.update_attributes(params[:venue]) if @venue.update_attributes(params[:venue])

View file

@ -14,8 +14,7 @@ module Admin
end end
# GET /admin/photos/1/edit # GET /admin/photos/1/edit
def edit def edit; end
end
# POST /admin/photos # POST /admin/photos
def create def create

View file

@ -24,8 +24,7 @@ module Admin
redirect_to admin_users_path, notice: "Updated #{@user.email}" redirect_to admin_users_path, notice: "Updated #{@user.email}"
end end
def edit def edit; end
end
def destroy def destroy
@user.destroy @user.destroy

View file

@ -3,8 +3,7 @@ module Admin
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title
load_and_authorize_resource :venue, through: :conference, singleton: true load_and_authorize_resource :venue, through: :conference, singleton: true
def index def index; end
end
def update def update
@venue = @conference.venue @venue = @conference.venue

View file

@ -8,8 +8,7 @@ class CommercialsController < ApplicationController
authorize! :new, @commercial authorize! :new, @commercial
end end
def edit def edit; end
end
def create def create
@commercial = @event.commercials.build(commercial_params) @commercial = @event.commercials.build(commercial_params)

View file

@ -1,8 +1,7 @@
class ConferenceController < ApplicationController class ConferenceController < ApplicationController
load_and_authorize_resource find_by: :short_title load_and_authorize_resource find_by: :short_title
def show def show; end
end
def subscribe def subscribe
conference = Conference.find_by_short_title(params[:id]) conference = Conference.find_by_short_title(params[:id])

View file

@ -42,8 +42,7 @@ class EventAttachmentsController < ApplicationController
end end
end end
def edit def edit; end
end
def create def create
params[:event_attachment][:title] = params[:title][0] params[:event_attachment][:title] = params[:title][0]