X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dc2a2c8ebd1a11e4a64555fda22c6859a51defff..23f568cf3a0f4a5f102952ebe68d6d2636e82b1b:/app/controllers/diary_entry_controller.rb diff --git a/app/controllers/diary_entry_controller.rb b/app/controllers/diary_entry_controller.rb index 7c38e58a8..c0b6ece38 100644 --- a/app/controllers/diary_entry_controller.rb +++ b/app/controllers/diary_entry_controller.rb @@ -1,13 +1,13 @@ class DiaryEntryController < ApplicationController layout "site", :except => :rss - before_filter :authorize_web - before_filter :set_locale - before_filter :require_user, :only => [:new, :edit, :comment, :hide, :hidecomment] - before_filter :lookup_this_user, :only => [:view, :comments] - before_filter :check_database_readable - before_filter :check_database_writable, :only => [:new, :edit] - before_filter :require_administrator, :only => [:hide, :hidecomment] + before_action :authorize_web + before_action :set_locale + before_action :require_user, :only => [:new, :edit, :comment, :hide, :hidecomment] + before_action :lookup_this_user, :only => [:view, :comments] + before_action :check_database_readable + before_action :check_database_writable, :only => [:new, :edit] + before_action :require_administrator, :only => [:hide, :hidecomment] def new @title = t "diary_entry.new.title" @@ -205,12 +205,6 @@ class DiaryEntryController < ApplicationController end end - ## - # is this list user specific? - def user_specific_list? - params[:friends] || params[:nearby] - end - ## # decide on a location for the diary entry map def set_map_location