admin/app/helpers/gaku/shared_helper.rb in gaku-0.1.1 vs admin/app/helpers/gaku/shared_helper.rb in gaku-0.2.0

- old
+ new

@@ -1,10 +1,10 @@ module Gaku module SharedHelper def can_edit? - %w( edit create update ).include? controller.action_name + %w( edit create update ).include? action_name end def genders { t(:'gender.female') => false, t(:'gender.male') => true } end @@ -20,6 +20,6 @@ def render_flash escape_javascript(render 'gaku/shared/flash', flash: flash) end end -end \ No newline at end of file +end