Kill trailing whitespace in ruby files
This commit is contained in:
@@ -1,33 +1,33 @@
|
||||
class NewsUpdatesController < ApplicationController
|
||||
before_filter :admin_only
|
||||
respond_to :html
|
||||
|
||||
|
||||
def index
|
||||
@news_updates = NewsUpdate.order("id desc").paginate(params[:page])
|
||||
respond_with(@news_updates)
|
||||
end
|
||||
|
||||
|
||||
def edit
|
||||
@news_update = NewsUpdate.find(params[:id])
|
||||
respond_with(@news_update)
|
||||
end
|
||||
|
||||
|
||||
def update
|
||||
@news_update = NewsUpdate.find(params[:id])
|
||||
@news_update.update_attributes(params[:news_update])
|
||||
respond_with(@news_update, :location => news_updates_path)
|
||||
end
|
||||
|
||||
|
||||
def new
|
||||
@news_update = NewsUpdate.new
|
||||
respond_with(@news_update)
|
||||
end
|
||||
|
||||
|
||||
def create
|
||||
@news_update = NewsUpdate.create(params[:news_update])
|
||||
respond_with(@news_update, :location => news_updates_path)
|
||||
end
|
||||
|
||||
|
||||
def destroy
|
||||
@news_update = NewsUpdate.find(params[:id])
|
||||
@news_update.destroy
|
||||
|
||||
Reference in New Issue
Block a user