lib/talkie/controller.rb in talkie-0.4.0 vs lib/talkie/controller.rb in talkie-0.4.1

- old
+ new

@@ -4,10 +4,12 @@ module Controller extend ActiveSupport::Concern included do delegate :allow?, :comment_form_displayable?, to: :current_permission - helper_method :allow?, :comment_form_displayable? + if respond_to? :helper_method + helper_method :allow?, :comment_form_displayable? + end end protected def current_permission