Remove unloadable from patches

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/6827/head
Alex Coles 10 years ago
parent d1e1272e1c
commit 1d76388712
  1. 2
      lib/open_project/backlogs/patches/my_controller_patch.rb
  2. 2
      lib/open_project/backlogs/patches/project_patch.rb
  3. 2
      lib/open_project/backlogs/patches/query_patch.rb
  4. 2
      lib/open_project/backlogs/patches/status_patch.rb
  5. 2
      lib/open_project/backlogs/patches/type_patch.rb
  6. 2
      lib/open_project/backlogs/patches/user_patch.rb
  7. 2
      lib/open_project/backlogs/patches/version_patch.rb
  8. 2
      lib/open_project/backlogs/patches/versions_controller_patch.rb
  9. 2
      lib/open_project/backlogs/patches/work_package_patch.rb
  10. 2
      lib/open_project/backlogs/patches/work_package_schema_patch.rb
  11. 2
      lib/open_project/backlogs/patches/work_packages_helper_patch.rb

@ -38,8 +38,6 @@ require_dependency 'my_controller'
module OpenProject::Backlogs::Patches::MyControllerPatch module OpenProject::Backlogs::Patches::MyControllerPatch
def self.included(base) def self.included(base)
base.class_eval do base.class_eval do
unloadable
include InstanceMethods include InstanceMethods
after_filter :save_backlogs_preferences, :only => [:account] after_filter :save_backlogs_preferences, :only => [:account]

@ -38,8 +38,6 @@ require_dependency 'project'
module OpenProject::Backlogs::Patches::ProjectPatch module OpenProject::Backlogs::Patches::ProjectPatch
def self.included(base) def self.included(base)
base.class_eval do base.class_eval do
unloadable
has_and_belongs_to_many :done_statuses, :join_table => :done_statuses_for_project, :class_name => "Status" has_and_belongs_to_many :done_statuses, :join_table => :done_statuses_for_project, :class_name => "Status"
include InstanceMethods include InstanceMethods

@ -38,8 +38,6 @@ require_dependency 'query'
module OpenProject::Backlogs::Patches::QueryPatch module OpenProject::Backlogs::Patches::QueryPatch
def self.included(base) def self.included(base)
base.class_eval do base.class_eval do
unloadable
include InstanceMethods include InstanceMethods
add_available_column(QueryColumn.new(:story_points, :sortable => "#{WorkPackage.table_name}.story_points")) add_available_column(QueryColumn.new(:story_points, :sortable => "#{WorkPackage.table_name}.story_points"))

@ -38,8 +38,6 @@ require_dependency 'status'
module OpenProject::Backlogs::Patches::StatusPatch module OpenProject::Backlogs::Patches::StatusPatch
def self.included(base) def self.included(base)
base.class_eval do base.class_eval do
unloadable
include InstanceMethods include InstanceMethods
end end
end end

@ -38,8 +38,6 @@ require_dependency 'type'
module OpenProject::Backlogs::Patches::TypePatch module OpenProject::Backlogs::Patches::TypePatch
def self.included(base) def self.included(base)
base.class_eval do base.class_eval do
unloadable
include InstanceMethods include InstanceMethods
extend ClassMethods extend ClassMethods
end end

@ -38,8 +38,6 @@ require_dependency 'user'
module OpenProject::Backlogs::Patches::UserPatch module OpenProject::Backlogs::Patches::UserPatch
def self.included(base) def self.included(base)
base.class_eval do base.class_eval do
unloadable
include InstanceMethods include InstanceMethods
end end
end end

@ -38,8 +38,6 @@ require_dependency 'version'
module OpenProject::Backlogs::Patches::VersionPatch module OpenProject::Backlogs::Patches::VersionPatch
def self.included(base) def self.included(base)
base.class_eval do base.class_eval do
unloadable
has_many :version_settings, :dependent => :destroy has_many :version_settings, :dependent => :destroy
accepts_nested_attributes_for :version_settings accepts_nested_attributes_for :version_settings

@ -38,8 +38,6 @@ require_dependency 'versions_controller'
module OpenProject::Backlogs::Patches::VersionsControllerPatch module OpenProject::Backlogs::Patches::VersionsControllerPatch
def self.included(base) def self.included(base)
base.class_eval do base.class_eval do
unloadable
include VersionSettingsHelper include VersionSettingsHelper
helper :version_settings helper :version_settings

@ -38,8 +38,6 @@ require_dependency 'work_package'
module OpenProject::Backlogs::Patches::WorkPackagePatch module OpenProject::Backlogs::Patches::WorkPackagePatch
def self.included(base) def self.included(base)
base.class_eval do base.class_eval do
unloadable
include InstanceMethods include InstanceMethods
extend ClassMethods extend ClassMethods

@ -38,8 +38,6 @@ require_dependency 'api/v3/work_packages/schema/work_package_schema'
module OpenProject::Backlogs::Patches::WorkPackageSchemaPatch module OpenProject::Backlogs::Patches::WorkPackageSchemaPatch
def self.included(base) def self.included(base)
base.class_eval do base.class_eval do
unloadable
include InstanceMethods include InstanceMethods
extend ClassMethods extend ClassMethods
end end

@ -36,8 +36,6 @@
module OpenProject::Backlogs::Patches::WorkPackagesHelperPatch module OpenProject::Backlogs::Patches::WorkPackagesHelperPatch
def self.included(base) def self.included(base)
base.class_eval do base.class_eval do
unloadable
def work_package_form_all_middle_attributes_with_backlogs(form, work_package, locals = {}) def work_package_form_all_middle_attributes_with_backlogs(form, work_package, locals = {})
attributes = work_package_form_all_middle_attributes_without_backlogs(form, work_package, locals) attributes = work_package_form_all_middle_attributes_without_backlogs(form, work_package, locals)

Loading…
Cancel
Save