search for: trueend

Displaying 2 results from an estimated 2 matches for "trueend".

2012 Sep 11
3
question about how to set up an active record adapter to prefer use of prepared statements...
...s prepared statements, but instead of passing me bindings AR passes me a fully specialized SQL string, not in all cases, but in many. Here is an example: SELECT addrs.* FROM addrs WHERE addrs.user_id = 153 FETCH FIRST 1 ROWS ONLY I do have this hook set up: def supports_statement_cache? trueend And I added this, but I am not familiar with its function, copying from another driver: if @config.fetch(:prepared_statements) { true } @visitor = Arel::Visitors::NuoDB.new self else @visitor = BindSubstitution.new self end Is there anything I need to...
2012 Sep 08
3
Polymorphic has_and_belongs_to_many association
...he DB tables, and have is all work with some kind of has_and_belongs_to_many polymorphic magic. Something like: class Song < ActiveRecord::Base has_and_belongs_to_many :genres, :as => :taggableend class Genre < ActiveRecord::Base has_and_belongs_to_many :taggables, :polymorphic => trueend or similar, I haven''t put much thought into that. I would like to hear some opinion of more experienced Rails developers to know if this would be a valuable feature. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group....