rubocop: fix various Rubocop warnings.
This commit is contained in:
@@ -36,15 +36,15 @@ class UserPolicy < ApplicationPolicy
|
||||
end
|
||||
|
||||
def permitted_attributes_for_update
|
||||
[
|
||||
:comment_threshold, :default_image_size, :favorite_tags,
|
||||
:blacklisted_tags, :time_zone, :per_page, :custom_style, :theme,
|
||||
:receive_email_notifications, :always_resize_images,
|
||||
:new_post_navigation_layout, :enable_private_favorites,
|
||||
:hide_deleted_posts, :style_usernames, :show_deleted_children,
|
||||
:disable_categorized_saved_searches, :disable_tagged_filenames,
|
||||
:disable_cropped_thumbnails, :disable_mobile_gestures, :enable_safe_mode,
|
||||
:enable_desktop_mode, :disable_post_tooltips,
|
||||
%i[
|
||||
comment_threshold default_image_size favorite_tags
|
||||
blacklisted_tags time_zone per_page custom_style theme
|
||||
receive_email_notifications always_resize_images
|
||||
new_post_navigation_layout enable_private_favorites
|
||||
hide_deleted_posts style_usernames show_deleted_children
|
||||
disable_categorized_saved_searches disable_tagged_filenames
|
||||
disable_cropped_thumbnails disable_mobile_gestures enable_safe_mode
|
||||
enable_desktop_mode disable_post_tooltips
|
||||
].compact
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user