ruby on rails - What is Spree Deface::Override :original keyword? -
in spree
deface::override
:original keyword used ? working on apps not begining , got struck code here:
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)
here :original
stands what?
thanks.
following found in spree/deface readme
:original - string containing original markup being overridden. if supplied deface log when original markup changes, helps highlight overrides need attention when upgrading versions of source application. warranted :replace overrides. nb: whitespace stripped before comparison.
for complete readme, go https://github.com/spree/deface
hope help. thanks.
Comments
Post a Comment