Skip to content

Commit

Permalink
DEV: PrettyText ctx load breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
angusmcleod committed Nov 7, 2023
1 parent 9ab77c4 commit c6a729e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ RSpec/ContextWording:

RSpec/DescribeClass:
Enabled: false

Discourse/TimeEqMatcher:
Enabled: false
2 changes: 1 addition & 1 deletion lib/custom_wizard/validators/update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def v8
return @ctx if @ctx

@ctx = PrettyText.v8
PrettyText.ctx_load(@ctx, "#{Rails.root}/vendor/assets/javascripts/moment.js")
@ctx.load("#{Rails.root}/vendor/assets/javascripts/moment.js")
@ctx
end
end
2 changes: 1 addition & 1 deletion plugin.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true
# name: discourse-custom-wizard
# about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more.
# version: 2.4.29
# version: 2.4.30
# authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos
# url: https://github.com/paviliondev/discourse-custom-wizard
# contact_emails: [email protected]
Expand Down

0 comments on commit c6a729e

Please sign in to comment.