Giter VIP home page Giter VIP logo

hierarchy's People

Contributors

mjc-gh avatar pronix avatar riscfuture avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hierarchy's Issues

Dependencies

Hello,

I notice some pretty explicit dependencies in the gemspec, to rails and pg.
AFAIK, both aren't really necessary (ActiveRecord might be though).

This might be a problem as, for example, the pg gem isn't available in jruby (instead, there is activerecord-jdbcpostgresql-adapter).
And, for someone who would be using AR, but not rails, this would inject a really unnecessary dependency.

If you were using travis, you could be testing this gem on all rubies automatically.
If you set it up, I'd be willing to take some time and make it available on jruby.

Deep trees

I haven't found the way for defining trees with more than one level of children. I can have parent (top), and this parent can have children (level 1), but this children can't have their own children, accessible from top parent.

Uninitialized constant ActiveSupport::Memoizable on Heroku

Hi!
I can't deploy app to Heroku with gem "hierarchy"
Error "Uninitialized constant ActiveSupport::Memoizable"

   uninitialized constant ActiveSupport::Memoizable
   /tmp/build_b2032c6e-2bcc-43ef-b916-40af31c5dc5c/vendor/bundle/ruby/1.9.1/

gems/hierarchy-1.0.6/lib/hierarchy.rb:30:in block in <module:Hierarchy>' /tmp/build_b2032c6e-2bcc-43ef-b916-40af31c5dc5c/vendor/bundle/ruby/1.9.1/ gems/activesupport-4.0.0/lib/active_support/concern.rb:114:inclass_eval'
/tmp/build_b2032c6e-2bcc-43ef-b916-40af31c5dc5c/vendor/bundle/ruby/1.9.1/
gems/activesupport-4.0.0/lib/active_support/concern.rb:114:in append_features' /tmp/build_b2032c6e-2bcc-43ef-b916-40af31c5dc5c/app/models/son.rb:2:ini
nclude'

Without "include Hierarchy" in model app deploying fine

Treeifying different models

Am I right that for now there is no support for making trees of records of different models? Like:
Things.Furniture.Table
Things.Fruits.Apple

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.