Fix bug for rails 4.2.
This commit is contained in:
parent
b8dafc5e47
commit
e6fde501e9
|
@ -1,7 +1,9 @@
|
|||
class ArchivesController < ApplicationController
|
||||
def self.custom_widget_data
|
||||
ac = ActionController::Base.new
|
||||
ac.render_to_string("archives/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("archives/custom_widget_data")
|
||||
end
|
||||
#avoid the categories to be not in the ArchiveCategory
|
||||
def serve_cmap
|
||||
|
|
Loading…
Reference in New Issue