recurring_select 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/recurring_select_helper.rb +6 -2
- data/lib/recurring_select/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cabe7a01dcefc8682a70850814515545fdbc4ef
|
4
|
+
data.tar.gz: 191681842a5ef0c281e045f6854bad2145620327
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1a272091bdb190e6824469338e4635c5904ad8def50196484eb421269be435ddc2b53fdf1a0dc5f3eacaa081f092943983632f35cc36955ff5f45ae0ff8d0a5
|
7
|
+
data.tar.gz: ddb128c7a89adbbd6974e7e3d52282de0fb49dea9e5e5b1117333f071b512b2ac089a773632f6760ff750144a78eabb6bb5238e0f731b3860abbd0cb52cc1b37
|
@@ -2,7 +2,7 @@ require "ice_cube"
|
|
2
2
|
|
3
3
|
module RecurringSelectHelper
|
4
4
|
module FormHelper
|
5
|
-
if Rails::VERSION::MAJOR
|
5
|
+
if Rails::VERSION::MAJOR >= 4
|
6
6
|
def select_recurring(object, method, default_schedules = nil, options = {}, html_options = {})
|
7
7
|
RecurringSelectTag.new(object, method, self, default_schedules, options, html_options).render
|
8
8
|
end
|
@@ -114,7 +114,11 @@ module RecurringSelectHelper
|
|
114
114
|
end
|
115
115
|
|
116
116
|
def render
|
117
|
-
|
117
|
+
if Rails::VERSION::STRING >= '5.2'
|
118
|
+
option_tags = add_options(recurring_options_for_select(value, @default_schedules, @options), @options, value)
|
119
|
+
else
|
120
|
+
option_tags = add_options(recurring_options_for_select(value(object), @default_schedules, @options), @options, value(object))
|
121
|
+
end
|
118
122
|
select_content_tag(option_tags, @options, @html_options)
|
119
123
|
end
|
120
124
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recurring_select
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jobber
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2018-07-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
187
|
version: '0'
|
188
188
|
requirements: []
|
189
189
|
rubyforge_project:
|
190
|
-
rubygems_version: 2.2.
|
190
|
+
rubygems_version: 2.5.2.3
|
191
191
|
signing_key:
|
192
192
|
specification_version: 4
|
193
193
|
summary: A select helper which gives you magical powers to generate ice_cube rules.
|