Skip to content

Commit

Permalink
Change 'white list' to 'permit list' and 'allowed'
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed Mar 3, 2019
1 parent f9c0ac7 commit 67f117f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Expand Up @@ -9,7 +9,7 @@ module Refinery

private

# Only allow a trusted parameter "white list" through.
# Only allow a trusted parameter "permit list" through.
def <%= "#{singular_table_name}_params" %>
<%- if attributes_names.empty? -%>
params[:<%= singular_table_name %>]
Expand Down
Expand Up @@ -211,7 +211,7 @@ module Refinery

private

# Only allow a trusted parameter "white list" through.
# Only allow a trusted parameter "permit list" through.
def event_params
params.require(:event).permit(:title, :date, :photo_id, :blurb)
end
Expand Down Expand Up @@ -246,7 +246,7 @@ module Refinery

private

# Only allow a trusted parameter "white list" through.
# Only allow a trusted parameter "permit list" through.
def event_params
params.require(:event).permit(:title, :date, :photo_id, :blurb, :event_type_id)
end
Expand Down
Expand Up @@ -184,7 +184,7 @@ module Refinery
params.require(:show).permit(permitted_show_params)
end

# Only allow a trusted parameter "white list" through.
# Only allow a trusted parameter "permit list" through.
def permitted_show_params
[:title, :blurb]
end
Expand Down Expand Up @@ -218,4 +218,4 @@ Refinery::Shows::Show.class_eval do
end
```

__TIP__: See further usage [here](https://github.com/refinery/refinerycms-page-images#usage).
__TIP__: See further usage [here](https://github.com/refinery/refinerycms-page-images#usage).
Expand Up @@ -22,7 +22,7 @@ Refinery::Images.configure do |config|
# Configure image ratios
# config.user_image_ratios = <%= Refinery::Images.user_image_ratios.inspect %>

# Configure white-listed mime types for validation
# Configure allowed mime types for validation
# config.whitelisted_mime_types = <%= Refinery::Images.whitelisted_mime_types.inspect %>

# Configure image view options
Expand Down
Expand Up @@ -9,7 +9,7 @@ Refinery::Resources.configure do |config|
# Configure how many resources per page should be displayed in the list of resources in the admin area
# config.pages_per_admin_index = <%= Refinery::Resources.pages_per_admin_index.inspect %>

# Configure white-listed mime types for validation
# Configure allowed mime types for validation
# config.whitelisted_mime_types = <%= Refinery::Resources.whitelisted_mime_types.inspect %>

# Configure Dragonfly.
Expand Down

0 comments on commit 67f117f

Please sign in to comment.