Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning with simple_form 3.1 #12

Closed
handylearn opened this issue Aug 28, 2015 · 5 comments
Closed

Deprecation warning with simple_form 3.1 #12

handylearn opened this issue Aug 28, 2015 · 5 comments

Comments

@handylearn
Copy link

If I follow the readme, image upload and preview works great, but I get a deprecation warning generated by simple_form in the log file:

DEPRECATION WARNING: input method now accepts a wrapper_options argument.
The method definition without the argument is deprecated and will be removed in the next Simple Form version.
Change your code from:

 def input

 to

 def input(wrapper_options)

See heartcombo/simple_form#997 for more information.
...
Rendered ....simple_dragonfly_preview-0.0.5/app/views/simple_dragonfly_preview/image/_form.html.erb

I used the following to call simple_dragonfly_preview:
<%= simple_form_for(@order_place) do |f| %>
<%= f.input :image, as: :image_preview, size:'180x180#' %>

@handylearn
Copy link
Author

It looks like matfiz has already worked on this issue. but it was not released by now:
60604e4

@elfassy
Copy link
Owner

elfassy commented Mar 15, 2016

I'll release a new version shortly

@matfiz
Copy link
Contributor

matfiz commented Mar 15, 2016

I will give it a look in the evening :)

wt., 15 mar 2016, 16:58 użytkownik Michael Elfassy notifications@github.com
napisał:

I'll release a new version shortly


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:

#12 (comment)

@elfassy
Copy link
Owner

elfassy commented Mar 15, 2016

sorry @matfiz your commit is already merged, answered too quickly.
@handylearn i've deployed a new version https://rubygems.org/gems/simple_dragonfly_preview
cheers

@elfassy elfassy closed this as completed Mar 15, 2016
@matfiz
Copy link
Contributor

matfiz commented Mar 15, 2016

Ok, great!

wt., 15 mar 2016, 17:42 użytkownik Michael Elfassy notifications@github.com
napisał:

sorry @matfiz https://github.com/matfiz your commit is already merged,
answered too quickly.
@handylearn https://github.com/handylearn i've deployed a new version
https://rubygems.org/gems/simple_dragonfly_preview
cheers


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:

#12 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants