From b2f6bc4da43a6278bd24c528808f932600cc5e77 Mon Sep 17 00:00:00 2001 From: ishikawa Date: Tue, 22 Jan 2019 11:52:20 +0900 Subject: [PATCH 1/4] Remove unnecessary "unloadable" method --- app/controllers/view_customizes_controller.rb | 2 -- app/models/view_customize.rb | 2 -- 2 files changed, 4 deletions(-) diff --git a/app/controllers/view_customizes_controller.rb b/app/controllers/view_customizes_controller.rb index 3d33da5..b1e3f5a 100644 --- a/app/controllers/view_customizes_controller.rb +++ b/app/controllers/view_customizes_controller.rb @@ -1,6 +1,4 @@ class ViewCustomizesController < ApplicationController - unloadable - layout 'admin' before_action :require_admin diff --git a/app/models/view_customize.rb b/app/models/view_customize.rb index 0c46f65..0a77dfd 100644 --- a/app/models/view_customize.rb +++ b/app/models/view_customize.rb @@ -1,6 +1,4 @@ class ViewCustomize < ActiveRecord::Base - unloadable - belongs_to :author, :class_name => 'User', :foreign_key => 'author_id' validates_presence_of :path_pattern From 3156b3f978c01f8ba7773493838c6994c80c7e26 Mon Sep 17 00:00:00 2001 From: onozaty Date: Sun, 27 Jan 2019 22:16:53 +0900 Subject: [PATCH 2/4] [WIP] Development for 2.0.1 From f14a959924a9477fa642a85c0ab644de5f6ee8b6 Mon Sep 17 00:00:00 2001 From: onozaty Date: Sun, 27 Jan 2019 23:30:41 +0900 Subject: [PATCH 3/4] Changed the maximum size of the code to 16 MB #35 --- db/migrate/005_change_code_limit_on_view_customizes.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 db/migrate/005_change_code_limit_on_view_customizes.rb diff --git a/db/migrate/005_change_code_limit_on_view_customizes.rb b/db/migrate/005_change_code_limit_on_view_customizes.rb new file mode 100644 index 0000000..3a9d4cc --- /dev/null +++ b/db/migrate/005_change_code_limit_on_view_customizes.rb @@ -0,0 +1,8 @@ +class ChangeCodeLimitOnViewCustomizes < ActiveRecord::CompatibleLegacyMigration.migration_class + def up + change_column :view_customizes, :code, :text, :limit => 16.megabytes + end + + def down + end +end From 7f980f0bdc7a75e7b1292c5099008d46a5ebe1f1 Mon Sep 17 00:00:00 2001 From: onozaty Date: Tue, 29 Jan 2019 23:42:25 +0900 Subject: [PATCH 4/4] Update version number to 2.0.1 --- init.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.rb b/init.rb index 095e6ae..1bc0355 100644 --- a/init.rb +++ b/init.rb @@ -5,7 +5,7 @@ name 'View Customize plugin' author 'onozaty' description 'View Customize plugin for Redmine' - version '2.0.0' + version '2.0.1' url 'https://github.com/onozaty/redmine-view-customize' author_url 'https://github.com/onozaty'