Uploaded image for project: 'TorqueBox'
  1. TorqueBox
  2. TORQUE-900

Rails template should not break an application when running in a non-torquebox context

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.1
    • Component/s: Rails
    • Labels:
    • Environment:

      All

    • Estimated Difficulty:
      Low

      Description

      Wrap:

      config.cache_store = :torque_box_store

      like this:

      if defined? TorqueBox::Infinispan::Cache
      config.cache_store = :torque_box_store
      end

      in config/application.rb so it doesn't break a Rails app running in a non-torque-box context (for testing, console, etc).

      I contacted Tobias Crawley directly about this initially and he said:
      "You are right, we probably should have a guard around that assignment

      Let me know if you have any questions.

      Thanks,

      -joe

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                benbrowning Ben Browining
                Reporter:
                joe.goggins Joe Goggins
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: