refinerycms-image_slideshows 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,7 @@ module Refinery
13
13
  end
14
14
 
15
15
  def create
16
- @image_slide.position = Refinery::ImageSlideshows::ImageSlide.maximum(:position) + 1
16
+ @image_slide.position = (Refinery::ImageSlideshows::ImageSlide.maximum(:position) || 0) + 1
17
17
 
18
18
  if @image_slide.valid? && @image_slide.save
19
19
  redirect_to image_slides_path, :notice => 'Image slide was successfully created.'
data/readme.md CHANGED
@@ -19,7 +19,7 @@ Suggested image slider: [Nivo Slider](http://nivo.dev7studios.com)
19
19
  Include the latest [gem](http://rubygems.org/gems/refinerycms-image_slideshows) into your Refinery CMS application's Gemfile:
20
20
 
21
21
  ```ruby
22
- gem "refinerycms-image_slideshows", '~> 1.0'
22
+ gem "refinerycms-image_slideshows", '~> 2.0.1'
23
23
  ```
24
24
 
25
25
  Then type the following at the command line inside your Refinery CMS application's root directory:
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 0
8
- - 1
9
- version: 2.0.1
8
+ - 2
9
+ version: 2.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jim Pruetting