Skip to content

Commit

Permalink
Improve the template warning
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Jul 6, 2024
1 parent dfb6ad3 commit 50bd2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phlex/sgml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def template

def self.method_added(method_name)
if method_name == :template
Kernel.warn "⚠️ [DEPRECATION] Defining the `template` method on a Phlex component will not be supported in Phlex 2.0. Please rename the method to `view_template` instead."
Kernel.warn "⚠️ [DEPRECATION] Defining the `template` method on a Phlex component will not be supported in Phlex 2.0. Please rename `#{name}#template` to `#{name}#view_template` instead."
end
end

Expand Down

0 comments on commit 50bd2c4

Please sign in to comment.