Fixing some deprecated rails 4 items

* Removed the Whiny Nill config variable, since it is deprecated
* Default scope needs a block
* Condition in relation is deprecated, use lambda instead