mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-03-06 09:39:51 +00:00
move into engine.rb
This commit is contained in:
parent
719bd2138c
commit
a1d1c122ed
7
lib/choice/engine.rb
Normal file
7
lib/choice/engine.rb
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
module ::Choice
|
||||
class Engine < ::Rails::Engine
|
||||
engine_name 'choice'
|
||||
isolate_namespace Choice
|
||||
end
|
||||
end
|
@ -1,6 +1,6 @@
|
||||
# name: choice-plugin
|
||||
# about: Integrating Discourse with Stripe
|
||||
# version: 0.0.3
|
||||
# version: 0.1.0
|
||||
# authors: Rimian Perkins
|
||||
|
||||
gem 'stripe', '1.58.0'
|
||||
@ -12,12 +12,7 @@ Rails.configuration.stripe = {
|
||||
|
||||
Stripe.api_key = Rails.configuration.stripe[:secret_key]
|
||||
|
||||
module ::Choice
|
||||
class Engine < ::Rails::Engine
|
||||
engine_name 'choice'
|
||||
isolate_namespace Choice
|
||||
end
|
||||
end
|
||||
require File.expand_path('../lib/choice/engine', __FILE__)
|
||||
|
||||
after_initialize do
|
||||
Discourse::Application.routes.prepend do
|
||||
|
Loading…
x
Reference in New Issue
Block a user