Feature/before filter

using `before_action` approach for rails applications