unloadable is no more needed refs Redmine#20513

This commit is contained in:
Karel Picman 2018-01-16 09:23:38 +01:00
parent e4ea2388c4
commit e1ef430f53
21 changed files with 3 additions and 22 deletions

View File

@ -22,7 +22,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class DmsfController < ApplicationController
unloadable
before_action :find_project
before_action :authorize, :except => [:expand_folder]

View File

@ -20,7 +20,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class DmsfFilesController < ApplicationController
unloadable
menu_item :dmsf

View File

@ -18,7 +18,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class DmsfFilesCopyController < ApplicationController
unloadable
menu_item :dmsf

View File

@ -19,7 +19,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class DmsfFolderPermissionsController < ApplicationController
unloadable
before_action :find_folder, :only => [:destroy]
before_action :find_project

View File

@ -18,7 +18,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class DmsfFoldersCopyController < ApplicationController
unloadable
menu_item :dmsf

View File

@ -19,7 +19,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class DmsfLinksController < ApplicationController
unloadable
model_object DmsfLink
before_action :find_model_object, :only => [:destroy, :restore]

View File

@ -19,7 +19,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class DmsfPublicUrlsController < ApplicationController
unloadable
model_object DmsfPublicUrl
before_action :authorize, :only => [:create]

View File

@ -20,7 +20,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class DmsfStateController < ApplicationController
unloadable
menu_item :dmsf

View File

@ -20,7 +20,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class DmsfUploadController < ApplicationController
unloadable
menu_item :dmsf

View File

@ -19,7 +19,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class DmsfWorkflowsController < ApplicationController
unloadable
model_object DmsfWorkflow
before_action :find_model_object, :except => [:create, :new, :index, :assign, :assignment]

View File

@ -29,7 +29,6 @@ rescue LoadError
end
class DmsfFile < ActiveRecord::Base
unloadable
include RedmineDmsf::Lockable

View File

@ -23,7 +23,6 @@ require 'digest'
class DmsfFileRevision < ActiveRecord::Base
unloadable
belongs_to :dmsf_file
belongs_to :source_revision, :class_name => 'DmsfFileRevision', :foreign_key => 'source_dmsf_file_revision_id'
belongs_to :user

View File

@ -21,7 +21,6 @@
class DmsfFileRevisionAccess < ActiveRecord::Base
unloadable
belongs_to :dmsf_file_revision
belongs_to :user
delegate :dmsf_file, :to => :dmsf_file_revision, :allow_nil => false

View File

@ -21,7 +21,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class DmsfFolder < ActiveRecord::Base
unloadable
include RedmineDmsf::Lockable

View File

@ -19,7 +19,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class DmsfFolderPermission < ActiveRecord::Base
unloadable
belongs_to :dmsf_folder

View File

@ -19,7 +19,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class DmsfLink < ActiveRecord::Base
unloadable
include ActiveModel::Validations
belongs_to :project

View File

@ -19,7 +19,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class DmsfPublicUrl < ActiveRecord::Base
unloadable
include ActiveModel::Validations
belongs_to :dmsf_file

View File

@ -25,7 +25,6 @@ module RedmineDmsf
def self.included(base)
base.send(:include, InstanceMethods)
base.class_eval do
unloadable
before_destroy :delete_system_folder
end
end

View File

@ -25,7 +25,6 @@ module RedmineDmsf
def self.included(base)
base.send(:include, InstanceMethods)
base.class_eval do
unloadable
before_destroy :delete_system_folder
end
end

View File

@ -25,7 +25,6 @@ module RedmineDmsf
def self.included(base) # :nodoc:
base.send(:include, InstanceMethods)
base.class_eval do
unloadable
before_destroy :remove_dmsf_references
end
end

View File

@ -25,8 +25,6 @@ module RedmineDmsf
def self.included(base) # :nodoc:
base.send(:include, InstanceMethods)
base.class_eval do
unloadable
before_destroy :remove_dmsf_references
end
end