Andy Brett
84c3b39e15
use zeitwerk for autoloading
2021-07-17 16:41:35 -07:00
Luis Ramos
e52937c113
Use rubocop auto correct to add frozen string literal to all files
...
This is an unsafe auto corection, we will need to trust our build here
2021-06-17 23:07:26 +01:00
Luis Ramos
a253228b96
Add some rubocop disable commands in the code to avoid future wrong rubocop auto corrections
2021-06-17 22:26:54 +01:00
Luis Ramos
23627c5453
Run rubocop -a (safe corrections) removing all exceptions so all possible fixes are applied
...
9290 issues fixed
2021-06-17 22:19:26 +01:00
Luis Ramos
5629dfbe09
Fix warning: deprecated Object#=~ is called
2021-06-04 22:42:27 +01:00
Luis Ramos
b76261c61c
Adapt preferable to work with new BigDecimal version
...
BigDecimal raises exception if called with nil or empty values
2020-12-12 18:50:57 +00:00
Matt-Yorkley
3c0172c507
Fix Spree::Preferences cache issue
...
In some cases this method was trying to delete a Rails.cache entry with `nil` as the key, leading to lots of errors.
2020-11-27 14:00:28 +00:00
Luis Ramos
a07029f660
Add require so that model is available when needed
2020-11-04 12:15:45 +00:00
Luis Ramos
d6862cdbce
Revert rubocop autocorrect change, it breaks some of the tests
2020-09-23 22:13:36 +01:00
Luis Ramos
b9319239d5
Remove configurations that are no longer used as we have moved the code to OFN and fix specs
2020-09-23 22:13:36 +01:00
Luis Ramos
9ebb689370
Fix easy rubocop issues
2020-09-23 22:13:36 +01:00
Luis Ramos
024a64b73a
Fix single rubocop rule: Use nested module definitions instead of compact style
2020-09-23 22:13:36 +01:00
Luis Ramos
25e61897aa
Run rubocop autocorrect
2020-09-23 22:13:36 +01:00
Luis Ramos
8b42543ca3
Bring configuration and preferences code from spree_core
2020-09-23 22:13:36 +01:00
Maikel Linke
94b903179e
Fix module declaration
...
Running script/prepare_imported_db.rb failed because
Spree::PaymentMethodDistributors couldn't be found. This problem is
described in the Rubocop docs:
https://rubystyle.guide/#namespace-definition
2020-09-10 16:12:17 +10:00
luisramos0
86b0d71c7e
Result of rubocop auto-correct and rebuilding rubocop_manual_todo
2019-05-28 12:57:29 +01:00
Pau Perez
b23cb55525
Fix current violations of Style/Send cop
2018-09-05 12:05:05 +02:00
Rob Harrington
7bb58342fc
Rubocop: Auto-correct Style/EmptyLineBetweenDefs offences
2017-06-23 16:49:08 +10:00
Rohan Mitchell
74f90dada3
Allow overriding mobile logo (raster and SVG) and home hero image
2015-07-17 16:06:50 +10:00
Rohan Mitchell
e4a4cdd915
Rewrite alias_method_chain to use super. Ahhhhh :)
2015-07-17 16:06:50 +10:00
Rohan Mitchell
66b4eb4c5d
Move Spree::Preferences::Configuration patches into superclass FileConfiguration
2015-07-17 16:06:50 +10:00
Rohan Mitchell
1d67e3b2b8
Fix image update, display logo on frontend
2015-07-17 16:06:50 +10:00
Rohan Mitchell
1234b35199
Add file handling to Spree::Preferences::Configuration
2015-07-17 16:06:49 +10:00