From 3d80bf71d46edd5771e1f4aabc735721eb132397 Mon Sep 17 00:00:00 2001 From: Robert Kranz Date: Tue, 10 Nov 2015 10:03:37 +0100 Subject: [PATCH] removed the unloadable from all controllers and models because it was causing problems on development --- app/controllers/time_bookings_controller.rb | 1 - app/controllers/time_logs_controller.rb | 1 - app/controllers/time_trackers_controller.rb | 1 - app/controllers/tt_bookings_list_controller.rb | 1 - app/controllers/tt_info_controller.rb | 1 - app/controllers/tt_logs_list_controller.rb | 1 - app/controllers/tt_menu_switcher_controller.rb | 1 - app/controllers/tt_overview_controller.rb | 1 - app/controllers/tt_reporting_controller.rb | 1 - app/models/time_booking.rb | 1 - app/models/time_log.rb | 1 - app/models/time_tracker.rb | 1 - 12 files changed, 12 deletions(-) diff --git a/app/controllers/time_bookings_controller.rb b/app/controllers/time_bookings_controller.rb index 8c78d9dd..598a59bc 100644 --- a/app/controllers/time_bookings_controller.rb +++ b/app/controllers/time_bookings_controller.rb @@ -1,5 +1,4 @@ class TimeBookingsController < ApplicationController - unloadable before_filter :authorize_global diff --git a/app/controllers/time_logs_controller.rb b/app/controllers/time_logs_controller.rb index 3d1340be..ad8606b6 100644 --- a/app/controllers/time_logs_controller.rb +++ b/app/controllers/time_logs_controller.rb @@ -1,5 +1,4 @@ class TimeLogsController < ApplicationController - unloadable menu_item :time_tracker_menu_tab_logs before_filter :authorize_global diff --git a/app/controllers/time_trackers_controller.rb b/app/controllers/time_trackers_controller.rb index 1d0fd932..3a8f1149 100644 --- a/app/controllers/time_trackers_controller.rb +++ b/app/controllers/time_trackers_controller.rb @@ -1,5 +1,4 @@ class TimeTrackersController < ApplicationController - unloadable menu_item :time_tracker_menu_tab_overview before_filter :js_auth, :authorize_global diff --git a/app/controllers/tt_bookings_list_controller.rb b/app/controllers/tt_bookings_list_controller.rb index 9bfc424d..5efb783e 100644 --- a/app/controllers/tt_bookings_list_controller.rb +++ b/app/controllers/tt_bookings_list_controller.rb @@ -1,5 +1,4 @@ class TtBookingsListController < ApplicationController - unloadable menu_item :time_tracker_menu_tab_bookings_list before_filter :authorize_global, :check_settings_for_ajax diff --git a/app/controllers/tt_info_controller.rb b/app/controllers/tt_info_controller.rb index f29d64c6..94d2671d 100644 --- a/app/controllers/tt_info_controller.rb +++ b/app/controllers/tt_info_controller.rb @@ -1,5 +1,4 @@ class TtInfoController < ApplicationController - unloadable menu_item :time_tracker_menu_tab_active_trackers before_filter :authorize_global, :check_settings_for_ajax diff --git a/app/controllers/tt_logs_list_controller.rb b/app/controllers/tt_logs_list_controller.rb index c43b15be..cd963158 100644 --- a/app/controllers/tt_logs_list_controller.rb +++ b/app/controllers/tt_logs_list_controller.rb @@ -1,5 +1,4 @@ class TtLogsListController < ApplicationController - unloadable menu_item :time_tracker_menu_tab_logs_list before_filter :authorize_global, :check_settings_for_ajax diff --git a/app/controllers/tt_menu_switcher_controller.rb b/app/controllers/tt_menu_switcher_controller.rb index 5519f0a5..0f66beb4 100644 --- a/app/controllers/tt_menu_switcher_controller.rb +++ b/app/controllers/tt_menu_switcher_controller.rb @@ -1,5 +1,4 @@ class TtMenuSwitcherController < ApplicationController - unloadable # this controller should dynamically redirect the user to an TimeTracker-page is is allowed to see, # if he clicks on the TimeTracker-Menu at the Top-Menu from redmine diff --git a/app/controllers/tt_overview_controller.rb b/app/controllers/tt_overview_controller.rb index 51bc2ac0..e63329d2 100644 --- a/app/controllers/tt_overview_controller.rb +++ b/app/controllers/tt_overview_controller.rb @@ -1,5 +1,4 @@ class TtOverviewController < ApplicationController - unloadable menu_item :time_tracker_menu_tab_overview before_filter :authorize_global, :check_settings_for_ajax diff --git a/app/controllers/tt_reporting_controller.rb b/app/controllers/tt_reporting_controller.rb index 30d0cd66..68553395 100644 --- a/app/controllers/tt_reporting_controller.rb +++ b/app/controllers/tt_reporting_controller.rb @@ -1,5 +1,4 @@ class TtReportingController < ApplicationController - unloadable menu_item :time_tracker_menu_tab_reporting before_filter :authorize_global, :check_settings_for_ajax diff --git a/app/models/time_booking.rb b/app/models/time_booking.rb index 84da759a..47ec156c 100644 --- a/app/models/time_booking.rb +++ b/app/models/time_booking.rb @@ -1,7 +1,6 @@ require 'redmine/i18n' class TimeBooking < ActiveRecord::Base include Redmine::I18n - unloadable attr_accessible :started_on, :stopped_at, :time_entry_id, :time_log_id, :project, :project_id, :comments, :issue, :activity_id belongs_to :project diff --git a/app/models/time_log.rb b/app/models/time_log.rb index 2b79b1b1..2e7c5719 100644 --- a/app/models/time_log.rb +++ b/app/models/time_log.rb @@ -1,7 +1,6 @@ require 'redmine/i18n' class TimeLog < ActiveRecord::Base include Redmine::I18n - unloadable attr_accessible :user_id, :started_on, :stopped_at, :project_id, :comments, :issue_id, :spent_time, :bookable attr_accessor :issue_id, :spent_time diff --git a/app/models/time_tracker.rb b/app/models/time_tracker.rb index 6a09a46c..5092884a 100644 --- a/app/models/time_tracker.rb +++ b/app/models/time_tracker.rb @@ -1,7 +1,6 @@ require 'redmine/i18n' class TimeTracker < ActiveRecord::Base include Redmine::I18n - unloadable attr_accessible :comments, :issue_id, :issue_text, :project_id, :start_time, :date, :round, :activity_id attr_accessor :start_time, :date