app/controllers/admin_general_controller.rb
Method index
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def index
# Tasks to do
@requires_admin_requests = InfoRequest.
find_in_state('requires_admin').
not_embargoed
Method timeline
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def timeline
# Recent events
@events_title = get_events_title
@events = WillPaginate::Collection.create((params[:page] or 1), 100) do |pager|