Rails 4:
 * removed mass assignment protection from models;
 * changed definition of association scopes.