updated deprecated before_filter
Merge pull request #4 from stefanosc/rails_4.0_update

updated deprecated before_filter