gpt4 book ai didi

ruby-on-rails - Spree Deface::Override :original 关键字是什么?

转载 作者:数据小太阳 更新时间:2023-10-29 07:53:09 25 4
gpt4 key购买 nike

Spree Deface::Override 中,:original 关键字用于什么?我不是从一开始就在开发应用程序,我对这里的代码感到震惊:

Deface::Override.new(:virtual_path => "....",
:name => "admin_user_acct_sales_row",

:insert_bottom => "[data-hook='admin_users_index_rows'], #admin_users_index_rows[data-hook]",

:partial => "spree/admin/users/...",

:original => "90406d8cbc733e601bb9717b4b5711e43fe181a3",

:disabled => false)

这里的:original代表什么?

谢谢。

最佳答案

以下是我在 spree/deface README 中找到的

:original - String containing original markup that is being overridden.
If supplied Deface will log when the original markup changes,
which helps highlight overrides that need attention when
upgrading versions of the source application. Only really
warranted for :replace overrides. NB: All whitespace is stripped
before comparison.

要获得完整的自述文件,请转至 https://github.com/spree/deface

希望对您有所帮助。谢谢。

关于ruby-on-rails - Spree Deface::Override :original 关键字是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17963894/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com