Class: StepLoadController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/step_load_controller.rb

Instance Method Summary collapse

Instance Method Details

#fetchObject



9
10
11
12
13
14
15
# File 'app/controllers/step_load_controller.rb', line 9

def fetch
  if params[:key]
    render inline: "<%= cache '#{params[:key]}', skip_digest: true do %><% end %>"
  else
    render nothing: true unless params[:key]
  end
end

#partialObject



4
5
6
7
# File 'app/controllers/step_load_controller.rb', line 4

def partial
  @options = Marshal.load(CGI.unescape(params[:key]))
  render inline: "<%= render *@options %>"
end