In Ruby 1.9 there exists a new syntax for writing your lambda functions. How you would normally do these anonymous functions went something like this:
scope :enabled, lambda{ where(:enabled = true) }
Ruby 1.9 supports what is called 'stabby lambda'...
Keep on reading ›