Skip to content
Temporary project looking at different ways to implement scopes in Active Record
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
tmp
.gitignore
README.markdown
Rakefile

README.markdown

Scopes Revisited

Trying to find better ways to implement scopes in Active Record.

See http://github.com/Manfred/rails/tree/scopes for the actual merge with Rails.

Objectives

  • Make scope stack merging more transparent (ie. not in a method with 5-level-deep nested if statements)
  • Make scopes thread-safe
  • Re-evaluate method and variable naming

Ideas

  • Merge scope stacks as late as possible to enable smarter merging
  • Delegate and federate stack merging (ie. Scopes don't need to know how associations merge their query parameters)

TODO

DONE

  • Start merging the new scope implementation into Rails and get some simple queries running
Something went wrong with that request. Please try again.