summaryrefslogtreecommitdiffstats
path: root/app/models/wiki_page.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-06 08:59:42 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-06 08:59:42 +0000
commit959573d0bd4086f196af79aeb68b8fcd1d75638d (patch)
tree6d49adf3303e655848ed7a71cf196784665145ad /app/models/wiki_page.rb
parentfcf877493e2907e73953679987bcf148aaee6e4f (diff)
downloadredmine-959573d0bd4086f196af79aeb68b8fcd1d75638d.tar.gz
redmine-959573d0bd4086f196af79aeb68b8fcd1d75638d.zip
cleanup: rubocop: fix Layout/AlignArguments in app/models/wiki_page.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18920 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/wiki_page.rb')
-rw-r--r--app/models/wiki_page.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb
index 422034243..c4da80ff9 100644
--- a/app/models/wiki_page.rb
+++ b/app/models/wiki_page.rb
@@ -62,13 +62,13 @@ class WikiPage < ActiveRecord::Base
DEFAULT_PROTECTED_PAGES = %w(sidebar)
safe_attributes 'parent_id', 'parent_title', 'title', 'redirect_existing_links', 'wiki_id',
- :if => lambda {|page, user| page.new_record? || user.allowed_to?(:rename_wiki_pages, page.project)}
+ :if => lambda {|page, user| page.new_record? || user.allowed_to?(:rename_wiki_pages, page.project)}
safe_attributes 'is_start_page',
- :if => lambda {|page, user| user.allowed_to?(:manage_wiki, page.project)}
+ :if => lambda {|page, user| user.allowed_to?(:manage_wiki, page.project)}
safe_attributes 'deleted_attachment_ids',
- :if => lambda {|page, user| page.attachments_deletable?(user)}
+ :if => lambda {|page, user| page.attachments_deletable?(user)}
def initialize(attributes=nil, *args)
super