app/services/import_organisations.rb
Method has too many lines. [8/7] (https://github.com/bbatsov/ruby-style-guide#short-methods) Open
Open
def find_or_create_charities_and_update
@charities.each do |charity|
organisation = @model_klass.find_or_create_by! name: charity['name'].titleize
organisation.update ({ address: charity['add1'],
postcode: charity['postcode'],
- Read upRead up
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.