"if rails_engine?" needs to be checked before configuration.
Merge pull request #344 from ionmx/master

"if rails_engine?" needs to be checked before configuration.