Code Monkey home page Code Monkey logo

ssl_routes's People

Contributors

cainlevy avatar cedric avatar sheerun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ssl_routes's Issues

Paperclip integration breaks paperclip

model = Model.first
model.image.url

ArgumentError: wrong number of arguments (2 for 0)
    from ssl_routes-0.2.0/lib/ssl_routes/paperclip.rb:12:in `s3_protocol'
    from paperclip-3.4.1/lib/paperclip/storage/s3.rb:153:in `block in extended'
    from paperclip-3.4.1/lib/paperclip/interpolations.rb:34:in `block (2 levels) in interpolate'
    from paperclip-3.4.1/lib/paperclip/interpolations.rb:33:in `gsub'
    from paperclip-3.4.1/lib/paperclip/interpolations.rb:33:in `block in interpolate'
    from paperclip-3.4.1/lib/paperclip/interpolations.rb:32:in `each'
    from paperclip-3.4.1/lib/paperclip/interpolations.rb:32:in `inject'
    from paperclip-3.4.1/lib/paperclip/interpolations.rb:32:in `interpolate'
    from paperclip-3.4.1/lib/paperclip/url_generator.rb:13:in `for'
    from paperclip-3.4.1/lib/paperclip/attachment.rb:145:in `url'
    from paperclip-3.4.1/lib/paperclip/attachment.rb:160:in `to_s'
    from railties-3.2.13/lib/rails/commands/console.rb:47:in `start'
    from railties-3.2.13/lib/rails/commands/console.rb:8:in `start'
    from railties-3.2.13/lib/rails/commands.rb:41:in `<top (required)>'

InstanceMethods deprecated in 3.2

Using ssl_routes in 3.2 causes this deprecation warning:

DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in ActionDispatch::Routing::UrlFor instead. (called from <top (required)> at .../some_file.rb:1)

t's because ssl_routes adds the url_for_with_ssl_support method to ActionDispatch::Routing::UrlFor using its InstanceMethods module, but ActionDispatch::Routing::UrlFor now uses the Concern library, which will automatically add instance methods from a module instead of auto-including an InstanceMethods sub-module.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.