rename lambda references to use shorthand syntax
This commit is contained in:
@@ -21,7 +21,7 @@ module Danbooru
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.smtp_settings = {:enable_starttls_auto => false}
|
||||
config.action_mailer.perform_deliveries = true
|
||||
config.log_tags = [lambda {|req| "PID:#{Process.pid}"}]
|
||||
config.log_tags = [->(req) {"PID:#{Process.pid}"}]
|
||||
config.action_controller.action_on_unpermitted_parameters = :raise
|
||||
config.force_ssl = true
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ SimpleForm.setup do |config|
|
||||
# config.item_wrapper_class = nil
|
||||
|
||||
# How the label text should be generated altogether with the required text.
|
||||
# config.label_text = lambda { |label, required, explicit_label| "#{required} #{label}" }
|
||||
# config.label_text = ->(label, required, explicit_label) { "#{required} #{label}" }
|
||||
|
||||
# You can define the class to use on all labels. Default is nil.
|
||||
# config.label_class = nil
|
||||
|
||||
Reference in New Issue
Block a user