unloadable is no more needed refs Redmine#20513
This commit is contained in:
parent
e4ea2388c4
commit
e1ef430f53
@ -22,7 +22,6 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
class DmsfController < ApplicationController
|
class DmsfController < ApplicationController
|
||||||
unloadable
|
|
||||||
|
|
||||||
before_action :find_project
|
before_action :find_project
|
||||||
before_action :authorize, :except => [:expand_folder]
|
before_action :authorize, :except => [:expand_folder]
|
||||||
|
|||||||
@ -20,7 +20,6 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
class DmsfFilesController < ApplicationController
|
class DmsfFilesController < ApplicationController
|
||||||
unloadable
|
|
||||||
|
|
||||||
menu_item :dmsf
|
menu_item :dmsf
|
||||||
|
|
||||||
|
|||||||
@ -18,7 +18,6 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
class DmsfFilesCopyController < ApplicationController
|
class DmsfFilesCopyController < ApplicationController
|
||||||
unloadable
|
|
||||||
|
|
||||||
menu_item :dmsf
|
menu_item :dmsf
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,6 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
class DmsfFolderPermissionsController < ApplicationController
|
class DmsfFolderPermissionsController < ApplicationController
|
||||||
unloadable
|
|
||||||
|
|
||||||
before_action :find_folder, :only => [:destroy]
|
before_action :find_folder, :only => [:destroy]
|
||||||
before_action :find_project
|
before_action :find_project
|
||||||
|
|||||||
@ -18,7 +18,6 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
class DmsfFoldersCopyController < ApplicationController
|
class DmsfFoldersCopyController < ApplicationController
|
||||||
unloadable
|
|
||||||
|
|
||||||
menu_item :dmsf
|
menu_item :dmsf
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,6 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
class DmsfLinksController < ApplicationController
|
class DmsfLinksController < ApplicationController
|
||||||
unloadable
|
|
||||||
|
|
||||||
model_object DmsfLink
|
model_object DmsfLink
|
||||||
before_action :find_model_object, :only => [:destroy, :restore]
|
before_action :find_model_object, :only => [:destroy, :restore]
|
||||||
|
|||||||
@ -19,7 +19,6 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
class DmsfPublicUrlsController < ApplicationController
|
class DmsfPublicUrlsController < ApplicationController
|
||||||
unloadable
|
|
||||||
|
|
||||||
model_object DmsfPublicUrl
|
model_object DmsfPublicUrl
|
||||||
before_action :authorize, :only => [:create]
|
before_action :authorize, :only => [:create]
|
||||||
|
|||||||
@ -20,7 +20,6 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
class DmsfStateController < ApplicationController
|
class DmsfStateController < ApplicationController
|
||||||
unloadable
|
|
||||||
|
|
||||||
menu_item :dmsf
|
menu_item :dmsf
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,6 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
class DmsfUploadController < ApplicationController
|
class DmsfUploadController < ApplicationController
|
||||||
unloadable
|
|
||||||
|
|
||||||
menu_item :dmsf
|
menu_item :dmsf
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
class DmsfWorkflowsController < ApplicationController
|
class DmsfWorkflowsController < ApplicationController
|
||||||
unloadable
|
|
||||||
model_object DmsfWorkflow
|
model_object DmsfWorkflow
|
||||||
|
|
||||||
before_action :find_model_object, :except => [:create, :new, :index, :assign, :assignment]
|
before_action :find_model_object, :except => [:create, :new, :index, :assign, :assignment]
|
||||||
|
|||||||
@ -29,7 +29,6 @@ rescue LoadError
|
|||||||
end
|
end
|
||||||
|
|
||||||
class DmsfFile < ActiveRecord::Base
|
class DmsfFile < ActiveRecord::Base
|
||||||
unloadable
|
|
||||||
|
|
||||||
include RedmineDmsf::Lockable
|
include RedmineDmsf::Lockable
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,6 @@ require 'digest'
|
|||||||
|
|
||||||
class DmsfFileRevision < ActiveRecord::Base
|
class DmsfFileRevision < ActiveRecord::Base
|
||||||
|
|
||||||
unloadable
|
|
||||||
belongs_to :dmsf_file
|
belongs_to :dmsf_file
|
||||||
belongs_to :source_revision, :class_name => 'DmsfFileRevision', :foreign_key => 'source_dmsf_file_revision_id'
|
belongs_to :source_revision, :class_name => 'DmsfFileRevision', :foreign_key => 'source_dmsf_file_revision_id'
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|||||||
@ -21,7 +21,6 @@
|
|||||||
|
|
||||||
class DmsfFileRevisionAccess < ActiveRecord::Base
|
class DmsfFileRevisionAccess < ActiveRecord::Base
|
||||||
|
|
||||||
unloadable
|
|
||||||
belongs_to :dmsf_file_revision
|
belongs_to :dmsf_file_revision
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
delegate :dmsf_file, :to => :dmsf_file_revision, :allow_nil => false
|
delegate :dmsf_file, :to => :dmsf_file_revision, :allow_nil => false
|
||||||
|
|||||||
@ -21,7 +21,6 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
class DmsfFolder < ActiveRecord::Base
|
class DmsfFolder < ActiveRecord::Base
|
||||||
unloadable
|
|
||||||
|
|
||||||
include RedmineDmsf::Lockable
|
include RedmineDmsf::Lockable
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,6 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
class DmsfFolderPermission < ActiveRecord::Base
|
class DmsfFolderPermission < ActiveRecord::Base
|
||||||
unloadable
|
|
||||||
|
|
||||||
belongs_to :dmsf_folder
|
belongs_to :dmsf_folder
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
class DmsfLink < ActiveRecord::Base
|
class DmsfLink < ActiveRecord::Base
|
||||||
unloadable
|
|
||||||
include ActiveModel::Validations
|
include ActiveModel::Validations
|
||||||
|
|
||||||
belongs_to :project
|
belongs_to :project
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
class DmsfPublicUrl < ActiveRecord::Base
|
class DmsfPublicUrl < ActiveRecord::Base
|
||||||
unloadable
|
|
||||||
include ActiveModel::Validations
|
include ActiveModel::Validations
|
||||||
|
|
||||||
belongs_to :dmsf_file
|
belongs_to :dmsf_file
|
||||||
|
|||||||
@ -25,7 +25,6 @@ module RedmineDmsf
|
|||||||
def self.included(base)
|
def self.included(base)
|
||||||
base.send(:include, InstanceMethods)
|
base.send(:include, InstanceMethods)
|
||||||
base.class_eval do
|
base.class_eval do
|
||||||
unloadable
|
|
||||||
before_destroy :delete_system_folder
|
before_destroy :delete_system_folder
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -25,7 +25,6 @@ module RedmineDmsf
|
|||||||
def self.included(base)
|
def self.included(base)
|
||||||
base.send(:include, InstanceMethods)
|
base.send(:include, InstanceMethods)
|
||||||
base.class_eval do
|
base.class_eval do
|
||||||
unloadable
|
|
||||||
before_destroy :delete_system_folder
|
before_destroy :delete_system_folder
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -25,7 +25,6 @@ module RedmineDmsf
|
|||||||
def self.included(base) # :nodoc:
|
def self.included(base) # :nodoc:
|
||||||
base.send(:include, InstanceMethods)
|
base.send(:include, InstanceMethods)
|
||||||
base.class_eval do
|
base.class_eval do
|
||||||
unloadable
|
|
||||||
before_destroy :remove_dmsf_references
|
before_destroy :remove_dmsf_references
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -25,8 +25,6 @@ module RedmineDmsf
|
|||||||
def self.included(base) # :nodoc:
|
def self.included(base) # :nodoc:
|
||||||
base.send(:include, InstanceMethods)
|
base.send(:include, InstanceMethods)
|
||||||
base.class_eval do
|
base.class_eval do
|
||||||
unloadable
|
|
||||||
|
|
||||||
before_destroy :remove_dmsf_references
|
before_destroy :remove_dmsf_references
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user