Skip to content

Commit

Permalink
Merge pull request #348 from saneshark/fix_undefined_method_heading_i…
Browse files Browse the repository at this point in the history
…ssue

added heading helper_method to controller for when helper is not loaded
  • Loading branch information
iNecas committed Apr 1, 2015
2 parents fbc2524 + 9ed39bd commit ed09de2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/apipie/apipies_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
module Apipie
class ApipiesController < ActionController::Base
include ActionView::Context
include ApipieHelper

layout Apipie.configuration.layout

around_filter :set_script_name
Expand Down Expand Up @@ -72,6 +75,7 @@ def apipie_checksum
end

private
helper_method :heading

def get_language
lang = nil
Expand Down

1 comment on commit ed09de2

@yoyos
Copy link

@yoyos yoyos commented on ed09de2 Apr 8, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should add

include ActionView::Helpers::TagHelper

It crashes on content_tag in ApipieHelper #353

Please sign in to comment.