Skip to content

Commit 7d432bf

Browse files
authored
Merge pull request #3391 from AlchemyCMS/add-config-installer
fix(installer): Add missing configs
2 parents 1accf11 + f6bd96e commit 7d432bf

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

lib/generators/alchemy/install/templates/alchemy.rb.tt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,40 @@ Alchemy.configure do |config|
188188
#
189189
# config.link_target_options = <%= @default_config.link_target_options.inspect %>
190190

191+
# === Format matchers
192+
#
193+
# Named aliases for regular expressions that can be used in various places.
194+
# The most common use case is the format validation of ingredients, or attribute validations of your individual models.
195+
#
196+
# == Example:
197+
#
198+
# validates_format_of :url, with: Alchemy.config.format_matchers.url
199+
#
200+
# config.format_matchers.tap do |format|
201+
# format.email = <%= @default_config.format_matchers.email.inspect %>
202+
# format.url = <%= @default_config.format_matchers.url.inspect %>
203+
# format.link_url = <%= @default_config.format_matchers.link_url.inspect %>
204+
# end
205+
191206
# The layout used for rendering the +alchemy/admin/pages#show+ action.
192207
# config.admin_page_preview_layout = <%= @default_config.admin_page_preview_layout.inspect %>
193208

194209
# The sizes for the preview size select in the page editor.
195210
# config.page_preview_sizes = <%= @default_config.page_preview_sizes.inspect %>
196211

212+
# Enable full text search configuration
213+
#
214+
# It enables a searchable checkbox in the page form to toggle
215+
# the searchable field. These information can used in a search
216+
# plugin (e.g. https://github.com/AlchemyCMS/alchemy-pg_search).
217+
#
218+
# == Example
219+
#
220+
# # config/initializers/alchemy.rb
221+
# Alchemy.config.page_searchable_checkbox = true
222+
#
223+
# config.show_page_searchable_checkbox = <%= @default_config.show_page_searchable_checkbox.inspect %>
224+
197225
# The storage adapter for Pictures and Attachments
198226
#
199227
config.storage_adapter = <%= @default_config.storage_adapter.inspect %>

0 commit comments

Comments
 (0)