【问题标题】:What is Spree Deface::Override :original keyword?什么是 Spree Deface::Override :original 关键字?
【发布时间】:2013-07-31 14:17:47
【问题描述】:

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

谢谢。

【问题讨论】:

    标签: ruby-on-rails ruby spree


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-08-14
      • 1970-01-01
      • 2011-09-28
      • 2015-02-04
      • 2018-12-26
      • 2013-07-21
      • 1970-01-01
      相关资源
      最近更新 更多