Tag: ruby
Advanced SQL and named scopes stack with ActiveRecord
Jan.24, 2010
If you ever work with rails application that is a little bit more complex then a simple CRUD you would know that some of the ActiveRecord magic doesn’t work for complex SQL queries. I am primary talking about named scopes stack feature.
(continue reading…)
Leave a Comment
:ActiveRecord, named_scope, query, rails, ruby, sql
more...
(continue reading…)
Objects behaviour inheritance with RSpec
Oct.27, 2009
About half of a year ago I was writing about object interface and Liskov Substitution Princeple. In short: Any class instance that extends the base class should pass all unit tests behaviour tests written for base class instance. It was a surprise for me that this concept has already been implemented in RSpec.
(continue reading…)
3 Comments
:behaviour, inheritance, rspec, ruby, test
more...
(continue reading…)