Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/66.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 什么是Spree Deface::Override:原始关键字?_Ruby On Rails_Ruby_Spree - Fatal编程技术网

Ruby on rails 什么是Spree Deface::Override:原始关键字?

Ruby on rails 什么是Spree Deface::Override:原始关键字?,ruby-on-rails,ruby,spree,Ruby On Rails,Ruby,Spree,在SpreeDeface::Override原始关键字用于什么?我不是从一开始就在开发一个应用程序,我在这里被一个代码打动了: Deface::Override.new(:virtual_path => "....", :name => "admin_user_acct_sales_row", :insert_bottom => "[data-hook='admin_users_index_rows'], #

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


谢谢。

我在
spree/deface自述文件中找到了以下内容

: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.
有关完整的自述,请转到

希望这会有帮助。谢谢