在Spree Deface::Override中:原始关键字用于什么?我正在开发一个不是从一开始就开始的应用程序,我被这里的代码所震撼:
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代表什么?
谢谢。
发布于 2013-07-31 15:39:51
下面是我在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
希望这能有所帮助。谢谢。
https://stackoverflow.com/questions/17963894
复制相似问题