Skip to content
Permalink
Browse files

Change 'white list' to 'permit list' and 'allowed'

  • Loading branch information...
parndt committed Feb 22, 2019
1 parent f9c0ac7 commit 67f117f937c5264ec0aeabe8e7eac1d562c5bc7b
@@ -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 %>]
@@ -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
@@ -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
@@ -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
@@ -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).
@@ -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
@@ -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.

0 comments on commit 67f117f

Please sign in to comment.
You can’t perform that action at this time.