Permalink
Browse files

Allow extra parameters to be passed when creating image.

  • Loading branch information...
1 parent 2996a3e commit b900c613fcabea783b00a67e8d55c82b195a87ea @tbuyle tbuyle committed with ugisozols Sep 5, 2012
Showing with 4 additions and 1 deletion.
  1. +3 −0 changelog.md
  2. +1 −1 images/app/controllers/refinery/admin/images_controller.rb
View
@@ -7,6 +7,9 @@
* [See full list](https://github.com/refinery/refinerycms/compare/2-0-stable...master)
+## 2.0.9 [unreleased]
+* Allowed extra parameters to be passed when creating image [#1914](https://github.com/refinery/refinerycms/pull/1914). [tbuyle](https://github.com/tbuyle)
+
## 2.0.8 [17 August 2012]
* Fixes installs broken by the release of jquery-rails 2.1.0 by requiring ~> 2.0.0. [Rob Yurkowski](https://github.com/robyurkowski)
@@ -44,7 +44,7 @@ def create
@images << (@image = ::Refinery::Image.create(params[:image]))
else
params[:image][:image].each do |image|
- @images << (@image = ::Refinery::Image.create(:image => image))
+ @images << (@image = ::Refinery::Image.create({:image => image}.merge(params[:image].except(:image))))
end
end
rescue Dragonfly::FunctionManager::UnableToHandle

0 comments on commit b900c61

Please sign in to comment.