mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-12 03:50:22 +00:00
Rubocop: Auto-correct Style/TrailingBlankLines offences
This commit is contained in:
@@ -59,4 +59,4 @@ class Admin::ProductImportController < Spree::Admin::BaseController
|
||||
def model_class
|
||||
ProductImporter
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -2,4 +2,4 @@ Deface::Override.new(:virtual_path => "spree/products/show",
|
||||
:insert_after => "[data-hook='product_show']",
|
||||
:text => "<%= javascript_include_tag main_app.distributors_enterprises_path(:format => :js) %>",
|
||||
:name => "add_distributor_details_js_to_product",
|
||||
:original => 'b05ac497efeeebd4464f29891fd2c4a0f60c24d9')
|
||||
:original => 'b05ac497efeeebd4464f29891fd2c4a0f60c24d9')
|
||||
|
||||
@@ -2,4 +2,4 @@ Deface::Override.new(:virtual_path => "spree/admin/products/_form",
|
||||
:insert_top => "[data-hook='admin_product_form_right']",
|
||||
:partial => "spree/admin/products/group_buy_form",
|
||||
:name => "add_group_buy_to_admin_product_edit",
|
||||
:original => '0c0e8d714989e48ee246a8253fb2b362f108621a')
|
||||
:original => '0c0e8d714989e48ee246a8253fb2b362f108621a')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Deface::Override.new(:virtual_path => "spree/admin/orders/index",
|
||||
:name => "add_orders_admin_sub_menu",
|
||||
:insert_before => "code[erb-silent]:contains('content_for :table_filter_title do')",
|
||||
:text => "<%= render :partial => 'spree/admin/shared/order_sub_menu' %>")
|
||||
:text => "<%= render :partial => 'spree/admin/shared/order_sub_menu' %>")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
Deface::Override.new(:virtual_path => "spree/shared/_nav_bar",
|
||||
:remove => "#search-bar",
|
||||
:name => "search_removal")
|
||||
:name => "search_removal")
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
Deface::Override.new(:virtual_path => "spree/shared/_sidebar",
|
||||
:remove => "#sidebar",
|
||||
:name => "sidebar_removal")
|
||||
|
||||
|
||||
@@ -2,4 +2,4 @@ Deface::Override.new(:virtual_path => "spree/shared/_order_details",
|
||||
:replace => "div.row.steps-data",
|
||||
:partial => "spree/shared/order_details_steps_data",
|
||||
:name => "replace_order_details_steps_data",
|
||||
:original => '1a68aa5db3fee7f7bbb2b6b826749aeb69168cee')
|
||||
:original => '1a68aa5db3fee7f7bbb2b6b826749aeb69168cee')
|
||||
|
||||
@@ -2,4 +2,4 @@ Deface::Override.new(:virtual_path => "spree/payments/_payment",
|
||||
:replace => "code[erb-loud]:contains('content_tag(:span, payment.payment_method.name)')",
|
||||
:text => "<%= content_tag( :span, ( payment.payment_method.description || payment.payment_method.name ).html_safe ) %>",
|
||||
:name => "replace_payment_name_with_description",
|
||||
:original => 'dff62efcadc0f9e6513b0f81a51ebbda035f78f6')
|
||||
:original => 'dff62efcadc0f9e6513b0f81a51ebbda035f78f6')
|
||||
|
||||
@@ -2,4 +2,4 @@ Deface::Override.new(:virtual_path => "spree/layouts/admin",
|
||||
:insert_bottom => "[data-hook='admin_inside_head']",
|
||||
:partial => "layouts/auth_token_script",
|
||||
:name => "set_auth_token_in_backend",
|
||||
:original => '6bc2c5de1c8f7542d033548557437c9fe4b3ba02')
|
||||
:original => '6bc2c5de1c8f7542d033548557437c9fe4b3ba02')
|
||||
|
||||
@@ -2,4 +2,4 @@ Deface::Override.new(:virtual_path => "spree/layouts/spree_application",
|
||||
:insert_bottom => "[data-hook='inside_head']",
|
||||
:partial => "layouts/auth_token_script",
|
||||
:name => "set_auth_token_in_frontend",
|
||||
:original => '5659ac7dbf6ac6469907b005b85285b894677815')
|
||||
:original => '5659ac7dbf6ac6469907b005b85285b894677815')
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
class Api::Admin::IdNameSerializer < ActiveModel::Serializer
|
||||
attributes :id, :name
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
class Api::Admin::TaxonSerializer < ActiveModel::Serializer
|
||||
attributes :id, :name, :pretty_name
|
||||
end
|
||||
end
|
||||
|
||||
@@ -2,4 +2,4 @@ class Api::CountrySerializer < ActiveModel::Serializer
|
||||
attributes :id, :name, :states
|
||||
|
||||
has_many :states, serializer: Api::StateSerializer
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
class Api::IdSerializer < ActiveModel::Serializer
|
||||
attributes :id
|
||||
end
|
||||
end
|
||||
|
||||
@@ -4,4 +4,4 @@ class Api::StateSerializer < ActiveModel::Serializer
|
||||
def abbr
|
||||
object.abbr.upcase
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
object @enterprise
|
||||
|
||||
attributes :id, :name
|
||||
attributes :id, :name
|
||||
|
||||
@@ -10,4 +10,3 @@ if current_order
|
||||
cart_count
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
collection Enterprise.is_distributor.visible
|
||||
extends 'json/partials/enterprise'
|
||||
extends 'json/partials/hub'
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
collection @line_items
|
||||
|
||||
extends "open_food_network/line_items/show"
|
||||
extends "open_food_network/line_items/show"
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
collection @orders
|
||||
|
||||
extends "open_food_network/orders/show"
|
||||
extends "open_food_network/orders/show"
|
||||
|
||||
@@ -4,4 +4,4 @@ attributes :id
|
||||
node( :distributor ) { |p| p.distributor.blank? ? "" : p.distributor.name }
|
||||
node( :line_items ) do |p|
|
||||
partial '/open_food_network/line_items/index', object: p.line_items
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
collection @products.order('id ASC')
|
||||
extends "spree/api/products/bulk_show"
|
||||
extends "spree/api/products/bulk_show"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
object false
|
||||
node(:success) { "Use of API Authorised" }
|
||||
node(:success) { "Use of API Authorised" }
|
||||
|
||||
Reference in New Issue
Block a user