Fix bug for rails 4.2.
This commit is contained in:
parent
75bec0fe3d
commit
b2c3627afa
|
@ -4,7 +4,9 @@ class EPapersController < ApplicationController
|
||||||
EmptyImgUrl = "#{EmptyImg}\" style=\"display: none;"
|
EmptyImgUrl = "#{EmptyImg}\" style=\"display: none;"
|
||||||
def self.custom_widget_data
|
def self.custom_widget_data
|
||||||
ac = ActionController::Base.new
|
ac = ActionController::Base.new
|
||||||
ac.render_to_string("e_papers/custom_widget_data",:locals=>{:@custom_data_field=>@custom_data_field,:@field_name=>@field_name})
|
ac.instance_variable_set(:@custom_data_field, @custom_data_field)
|
||||||
|
ac.instance_variable_set(:@field_name, @field_name)
|
||||||
|
ac.render_to_string("e_papers/custom_widget_data")
|
||||||
end
|
end
|
||||||
def index
|
def index
|
||||||
page_no = OrbitHelper.page_number
|
page_no = OrbitHelper.page_number
|
||||||
|
|
Loading…
Reference in New Issue