for our shiny new rails 4 apps
fix error if use_memcached false
Merge branch 'rails_4'