Code Monkey home page Code Monkey logo

Comments (4)

anderscarling avatar anderscarling commented on July 17, 2024

The issue seems to be caused by Ruby 1.9's introduction of a second optional argument to Module#const_defined? which makes Remarkable.const_defined?('ActiveRecord') (in lib/remarkable_rails/active_orm.rb:17) include ancestors by default and thus returning true when it finds ::ActiveRecord. When I checked in ./script/console, require 'remarkable_rails'; Remarkable.const_defined?('ActiveRecord', false) seemed to return false as expected.

This is the workaround I used:
Add to you spec/spec_helper.rb before require 'remarkable_rails':
require 'remarkable_activerecord'

You could also add this to your config/environments/test.rb, though it's not strictly needed (in my environment):
add "config.gem "remarkable_activerecord", :lib => false

from remarkable.

lukerandall avatar lukerandall commented on July 17, 2024

I had the same problem. Thanks anderscarling, your solution worked for me.

from remarkable.

robertwahler avatar robertwahler commented on July 17, 2024

+1 for this fix, got me up and running on 1.9. Thanks!

from remarkable.

joergd avatar joergd commented on July 17, 2024

Also add

, :require => false

to your gem file if you're using this with bundler. Like so:

gem "remarkable_rails", :require => false

from remarkable.

Related Issues (20)

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.