Fix Rails 4.0 tests
Use AM::Serializers 0.7 on Rails 3.0

Due to rails-api/active_model_serializers#304
Clear ViewContext before specs instead of after

By doing it before, we get sure that another type of spec (model,
acceptance) does not leave ViewContext in a wrong context...

https://github.com/drapergem/draper/issues/523
Merge pull request #547 from gaizka/master

Clear ViewContext before specs instead of after
Alias `object` to `#{model_name}`

If we have an `ArticleDecorator` there is going to be a method
added to it named `article` which is convenient for the user.
Require NameError#missing_name? from ActiveSupport
Improve aliasing to object class name
Only define MongoidPostDecorator when using Mongoid
Merge pull request #541 from haines/object_class_name_alias

Alias `object` to `#{object_class.name}`
Make CONTRIBUTING.md slightly friendlier

Make CONTRIBUTING.md that little bit friendly by saying thanks at the top, and linking to issue reports new issue pages.
Merge pull request #552 from iHiD/patch-1

Make CONTRIBUTING.md slightly friendlier
hook in generator from controller generator

* use hook instead of invoke so it's easy to configure
* hook into controller_generator and scaffold_controller_generator
  This feels more natural than invoking from the resource generator.

Decorators are closely related to controllers, views and helpers.
So they should be generated in that context.
If controller generation is disabled for say generating resources there
is no point in creating decorators.
Readme updated to reflect new generator hook

You get a decorator whenever you create a controller. Still using 'generate resource' in the example to clearify this works from all generators that create controllers.
remove extra blank lines
Merge pull request #553 from azul/hook-generator-in-controller-generator

hook generator from controller generator
depreciated -> deprecated
Merge pull request #556 from santry/patch-1

depreciated -> deprecated [ci skip]