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

image_size doesn't come back as array #13

Open
bobbytables opened this issue Feb 20, 2013 · 1 comment
Open

image_size doesn't come back as array #13

bobbytables opened this issue Feb 20, 2013 · 1 comment

Comments

@bobbytables
Copy link

It stores the data as YAML (which seems like overkill anyways), and when calling image_size it doesn't return the array but the string instead.

Sweepstake.first.invite_button.image_size
  Sweepstake Load (0.4ms)  SELECT `sweepstakes`.* FROM `sweepstakes` LIMIT 1
=> "---\n- 521\n- 388\n"

Attempt to use image_size_s

Sweepstake.first.invite_button.image_size_s
  Sweepstake Load (0.4ms)  SELECT `sweepstakes`.* FROM `sweepstakes` LIMIT 1
NoMethodError: undefined method `join' for "---\n- 521\n- 388\n":String
from /Users/robertross/.rbenv/versions/1.9.3-p194-perf/lib/ruby/gems/1.9.1/gems/carrierwave-meta-0.0.4/lib/carrierwave-meta/meta.rb:40:in `image_size_s'
@gzigzigzeo
Copy link
Owner

Seemed that your image size column is not deserialized. I'll try to see.

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

2 participants