forked from saurabh/orbit4-5
added ignore file for frontend
This commit is contained in:
parent
24f15db2fa
commit
d173ed28b5
|
@ -16,3 +16,4 @@
|
||||||
/tmp
|
/tmp
|
||||||
|
|
||||||
/Gemfile.lock
|
/Gemfile.lock
|
||||||
|
app/views/frontend
|
||||||
|
|
|
@ -11,7 +11,6 @@ module PagesHelper
|
||||||
doc.to_html
|
doc.to_html
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
def render_widget_for_frontend(controller_name, widget_method, widget_file)
|
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"))
|
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")
|
doc = Nokogiri::HTML(file, nil, "UTF-8")
|
||||||
|
|
Loading…
Reference in New Issue