Class: StepLoadController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- StepLoadController
- Defined in:
- app/controllers/step_load_controller.rb
Instance Method Summary collapse
Instance Method Details
#fetch ⇒ Object
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 |
#partial ⇒ Object
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 |