Skip to content

Commit

Permalink
[RUBY-3433] updating readme
Browse files Browse the repository at this point in the history
  • Loading branch information
brujeo committed Oct 22, 2024
1 parent ae08c0b commit 258a943
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ Make sure you already have:
- [Bundler](http://bundler.io/) – for installing Ruby gems
- MongoDb 3.6

The engine also expects these gems to be installed in the application in which it is mounted:

- [CanCanCan](https://github.com/CanCanCommunity/cancancan) ~> 1.10

And for a User model to be in place. See the [dummy testing app](https://github.com/DEFRA/waste-carriers-engine/tree/master/spec/dummy) for an example of how this might be implemented.

## Mounting the engine

Add the engine to your Gemfile:
Expand Down
3 changes: 2 additions & 1 deletion app/services/waste_carriers_engine/govpay_payment_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
module WasteCarriersEngine
class GovpayPaymentService

def initialize(transient_registration, order)
def initialize(transient_registration, order, current_user = nil)
@transient_registration = transient_registration
@order = order
@current_user = current_user
end

def prepare_for_payment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def date_registered
end

def certificate_presenter
@_certificate_presenter ||= CertificateGeneratorService.run(registration: @registration)
@_certificate_presenter ||= CertificateGeneratorService.run(registration: @registration,
requester: @requester)
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def date_activated
end

def certificate_presenter
@_certificate_presenter ||= CertificateGeneratorService.run(registration: @registration)
@_certificate_presenter ||= CertificateGeneratorService.run(registration: @registration,
requester: @requester)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion config/locales/activemodel.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ en:
not_locked: "Account was not locked"
not_saved:
one: "1 error prohibited this %{resource} from being saved:"
other: "%{count} errors prohibited this %{resource} from being saved:"
other: "%{count} errors prohibited this %{resource} from being saved:"

0 comments on commit 258a943

Please sign in to comment.