search for: scoped_methods

Displaying 6 results from an estimated 6 matches for "scoped_methods".

2009 Jul 20
2
Hitting unknown error with "can't dup NilClass"
...mongrel, working for the first time and failed for the rest. I append the application error log as below: /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ base.rb:2189:in `dup'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ base.rb:2189:in `scoped_methods'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ base.rb:2193:in `current_scoped_methods'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ base.rb:2183:in `scope'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/activ...
2006 Mar 22
15
Rails-1.1.0-RC1 tagged today (4010)
Looks like Rails 1.1.0 RC1 is finally here: http://dev.rubyonrails.org/changeset/4010 -- Posted via http://www.ruby-forum.com/.
2006 Jul 02
11
Rails Plugin: meantime_filter for controllers (actions within blocks)
...A good thing is that nested filters are supported. You can have the first filter yielding to the second that finally yields to the action. It is performed within the two blocks so that you can use nested with_scope cleanly and easily without having to touch the protected class method "scoped_methods" of your models. For example (still in a controller definition): meantime_filter :scope_to_user_group meantime_filter :scope_to_user, :only => :show Please read the RDoc documentation for more informations. DOWNLOADING THE PLUGIN (and documentation) While the RubyForge project request...
2010 Nov 03
0
Accessing (updating?) the proxy_scope chain for named_scope (Rails 2.3.x)
...later in the chain Given: Product.price.volume.average_discount I''d like the named_scope :average_discount to be able to reach back in the proxy chain to see if :price is part of the chain (its an example only, not the actual use case ). And potentially ''adjust'' it. #scoped_methods isn''t it - that''s populated only when in with_scope. Question 1: How can I access to the current proxy chain from within a named_scope? Question 2: Can I modify the proxy_options (shudder I know) without some serious monkey patching? Yes, I realise I could add parameters to t...
2006 Nov 21
2
Accessing scopes
If with_scope has been called previously, how do I access the find conditions dynamically? I am asking because I am using a find_by_sql call (which clobbers the with_scope). How can I access the method scoping so that I can read it and incorporate it into my query manually? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
2006 Jul 05
2
Serialized object behaves weird
Hi! I got a class named EinsatzFilter which I serialized to session. Before saving to session it works afterwards I keep getting the message: "undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from ActiveRecord::Base inherited class. Code: class EinsatzFilter include ApplicationHelper attr_reader :personen, :monat, :projekte, :kunde