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

Sinatra, Padrino, and others #300

Open
pchaganti opened this issue May 9, 2014 · 2 comments
Open

Sinatra, Padrino, and others #300

pchaganti opened this issue May 9, 2014 · 2 comments

Comments

@pchaganti
Copy link

Can this be used with Sinatra , Padrino or any other non-rails apps?

thanks!

@kevinhughes27
Copy link

I am using it with Sinatra but I have to mock out some classes or it crashes on load:

module Rails
  def self.env
    'production'
  end

  module VERSION
    MAJOR = 0
  end
end

class WickedPdf
  class Mime
    class Type
      def self.lookup_by_extension(var)
        true
      end
    end
  end
end

Otherwise it works fine

@pchaganti
Copy link
Author

ah. thx!

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

No branches or pull requests

3 participants