Sha256: ec11e6b7b74b1a12447e96543ec193682af488881245824771b9a5e9556d64c1
Contents?: true
Size: 472 Bytes
Versions: 7
Compression:
Stored size: 472 Bytes
Contents
module HowTo class ApplicationController < ::ApplicationController helper_method :can_manage_how_to? def can_manage_how_to? self.send(HowTo.config.permitted_to_manage_how_to.to_sym) rescue false end def authorise_how_to_manage! self.send(HowTo.config.authorization_method_to_manage.to_sym) rescue false end def authorise_how_to_view! self.send(HowTo.config.authorization_method_to_view.to_sym) rescue true end end end
Version data entries
7 entries across 7 versions & 1 rubygems