lib/talkie/renderer_helper.rb in talkie-0.4.0 vs lib/talkie/renderer_helper.rb in talkie-0.4.1
- old
+ new
@@ -21,10 +21,12 @@
root_comments
commentable].freeze
included do
delegate *DELEGATED_METHODS_TO_COMMENTS_RENDERER, to: :comments_renderer
- helper_method *HELPER_METHODS
+ if respond_to?(:helper_method)
+ helper_method *HELPER_METHODS
+ end
end
protected
def talkie_on(*args)