Skip to content

Commit

Permalink
Pass caller_locations to form dialog deprecator
Browse files Browse the repository at this point in the history
  • Loading branch information
spohlenz committed Oct 16, 2023
1 parent e49deec commit cbf0d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/trestle/form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def initialize(options={}, &block)
end

if options[:dialog]
Trestle.deprecator.warn("`form dialog: true` is deprecated. Please use `form modal: true` instead.")
Trestle.deprecator.warn("`form dialog: true` is deprecated. Please use `form modal: true` instead.", caller_locations(3))
@options.delete(:dialog)
@options[:modal] = {}
end
Expand Down

0 comments on commit cbf0d7c

Please sign in to comment.