spree_account_recurring 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
<div class="alpha four columns">
|
6
6
|
<div id="preference-settings" data-hook class="field">
|
7
7
|
<%= label_tag nil, Spree.t(:provider) %>
|
8
|
-
<%= select(:recurring, :type,
|
8
|
+
<%= select(:recurring, :type, Rails.application.config.spree.recurring_providers.collect {|pro| [pro.display_name, pro]}, {}, {disabled: !@recurring.new_record?, class: 'select2 fullwidth'}) %>
|
9
9
|
|
10
10
|
<% unless @recurring.new_record? %>
|
11
11
|
<%= preference_fields(@recurring, f) %>
|
@@ -6,6 +6,10 @@ module SpreeAccountRecurring
|
|
6
6
|
|
7
7
|
config.autoload_paths += %W(#{config.root}/lib)
|
8
8
|
|
9
|
+
Spree::Core::Environment.class_eval do
|
10
|
+
attr_accessor :recurring_providers
|
11
|
+
end
|
12
|
+
|
9
13
|
# use rspec for tests
|
10
14
|
config.generators do |g|
|
11
15
|
g.test_framework :rspec
|
@@ -18,5 +22,9 @@ module SpreeAccountRecurring
|
|
18
22
|
end
|
19
23
|
|
20
24
|
config.to_prepare &method(:activate).to_proc
|
25
|
+
|
26
|
+
initializer "spree.register.recurring_providers" do |app|
|
27
|
+
app.config.spree.recurring_providers = [Spree::Recurring::StripeRecurring]
|
28
|
+
end
|
21
29
|
end
|
22
30
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_account_recurring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Priyank Gupta
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2014-04-
|
18
|
+
date: 2014-04-09 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: spree_core
|