Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions app/controllers/view_customizes_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
class ViewCustomizesController < ApplicationController
unloadable

layout 'admin'

before_action :require_admin
Expand Down
2 changes: 0 additions & 2 deletions app/models/view_customize.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
class ViewCustomize < ActiveRecord::Base
unloadable

belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'

validates_presence_of :path_pattern
Expand Down
8 changes: 8 additions & 0 deletions db/migrate/005_change_code_limit_on_view_customizes.rb
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down