TorqueBox
  1. TorqueBox
  2. TORQUE-651

Padrino application requiring sass/plugin incorrectly identified by SASS as Rails application

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Replace your invocation of:

      require 'sass/plugin'

      ...with:

      module Sass
      RAILS_LOADED = true
      end

      require 'sass/plugin'
      require 'sass/plugin/generic'

      Show
      Replace your invocation of: require 'sass/plugin' ...with: module Sass RAILS_LOADED = true end require 'sass/plugin' require 'sass/plugin/generic'
    • Steps to Reproduce:
      Hide

      Adding torquebox-server and sass to a padrino project Gemfile, then requiring 'sass/plugin' in config/boot.rb and attempting to run the torquebox server and navigate to the page is enough to reproduce the issue.

      Show
      Adding torquebox-server and sass to a padrino project Gemfile, then requiring 'sass/plugin' in config/boot.rb and attempting to run the torquebox server and navigate to the page is enough to reproduce the issue.
    • Similar Issues:
      Show 10 results 

      Description

      Backtrace: https://gist.github.com/b4b896d941df3744b503

      SASS identifies a Rails Application by checking if ActionController is defined and incorrectly brings in 'sass/plugin/rails' and fails.

        Activity

        Show
        Toby Crawley
        added a comment - Fixed by: https://github.com/torquebox/torquebox/compare/c4a7c28f...2048484

          People

          • Assignee:
            Toby Crawley
            Reporter:
            Dave Willett
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: