3

: originalSpree 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代表什么?

谢谢。

4

1 回答 1

5

以下我在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.

如需完整的 README,请访问https://github.com/spree/deface

希望它会有所帮助。谢谢。

于 2013-07-31T07:39:51.213 回答