sferik/rails_admin — pull request #1431 by taavo (2012-12-07 16:04:42+00:00)
Title: LazyModel: refactor to remove unnecessary #store method

Here's the small refactor discussed in 4da98396a4a8a95a.

Notes:

- I had to delete the tests `it "evaluates only last block"` and `it "resets models when a new block is given"` since it's no longer possible to pass a LazyModel more than one block. These tests should be rewritten at the RailsAdmin::Config level, but I've run out of time--I have to get on a plane.

- I think passing the blocks in as `&block` instead of `do ...something... end` in the tests is getting a little weird. Had I a little more time I probably would've tried to clean that up.

Thanks.