riscfuture / hierarchy Goto Github PK
View Code? Open in Web Editor NEWUse PostgreSQL LTREE type with ActiveRecord
Home Page: hierarchy
License: MIT License
Use PostgreSQL LTREE type with ActiveRecord
Home Page: hierarchy
License: MIT License
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.
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.
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:in
class_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:in
i
nclude'
Without "include Hierarchy" in model app deploying fine
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.