refinerycms-image_slideshows 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -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", '~>
|
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:
|