diff --git a/.gitignore b/.gitignore index 5112e49..99331fa 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ /tmp /Gemfile.lock +app/views/frontend diff --git a/app/helpers/pages_helper.rb b/app/helpers/pages_helper.rb index 77c45e9..bd9072c 100644 --- a/app/helpers/pages_helper.rb +++ b/app/helpers/pages_helper.rb @@ -11,7 +11,6 @@ module PagesHelper doc.to_html end - def render_widget_for_frontend(controller_name, widget_method, widget_file) file = File.open(File.join(Rails.root, 'app', 'templates', "#{Template::KEY}", 'modules', "#{controller_name}", "_#{widget_file}.html.erb")) doc = Nokogiri::HTML(file, nil, "UTF-8")