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

Already on GitHub? Sign in to your account

stack level too deep #10

Closed
nm opened this Issue Jan 7, 2012 · 1 comment

Comments

Projects
None yet
1 participant

nm commented Jan 7, 2012

When i include the carrierwave_direct gem I get the following error:

    stack level too deep

Full Trace

    carrierwave_direct (0.0.2) lib/carrierwave_direct/mount.rb:8

mount.rb

      uploader.class_eval <<-RUBY, __FILE__, __LINE__+1
        def #{column}; self; end
      RUBY

rails 3.1.0, ruby 1.9.2, carrierwave 0.5.8, carrierwave_direct 0.0.2

I'm using a standard uploader (as shown in the readme).

What am I doing wrong? Thanks in advance!

nm commented Jan 11, 2012

Solved it!

Don't name your string column "file". It works with carrierwave only, but with carrierwave_direct it results in a stack level error.

@nm nm closed this Jan 11, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment