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

Files not properly "required" #3

Open
tricon opened this Issue Jul 22, 2009 · 0 comments

Comments

Projects
None yet
1 participant

tricon commented Jul 22, 2009

When using attachment_fu alongside Yard, launching the Rails server throws an error that constant Technoweenie::AttachmentFu can not be found. It is failing on:

ActiveRecord::Base.send(:extend, Technoweenie::AttachmentFu::ActMethods)

When using attachment_fu alongside Shoulda, the same error is thrown when attempting to run tests.

In "init.rb", only TempFile and Geometry are required. Adding the following resolves the aforementioned issue, and should be added to the repo:

require 'technoweenie/attachment_fu'
Dir.glob(File.join(File.dirname(__FILE__), 'lib/backends/*.rb')).each {|f| require f }
Dir.glob(File.join(File.dirname(__FILE__), 'lib/processors/*.rb')).each {|f| require f }

daronco referenced this issue in mconf/attachment_fu Jun 17, 2011

jaischeema referenced this issue in tricycle/attachment_fu Jun 6, 2013

Merge pull request #3 from aalong/master
Use standard Tempfile naming to avoid Sprockets conflict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment