mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-27 10:51:15 +00:00
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
This commit is contained in:
parent
fcf877493e
commit
959573d0bd
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user