Sha256: 0933f775002cc7c0c1155565e1151defb31e08dcef8d927dbb584d0fdd800d4c

Contents?: true

Size: 552 Bytes

Versions: 47

Compression:

Stored size: 552 Bytes

Contents

class SlimController < ApplicationController
  def normal
  end

  def xml
  end

  def no_layout
    render layout: false
  end

  def variables
    @hello = "Hello Slim with variables!"
  end

  def partial
  end

  def streaming
    @hello = "Hello Streaming!"
    render :content_for, stream: true
  end

  def integers
    @integer = 1337
  end

  def thread_options
    Slim::Engine.with_options(shortcut: {'@' => { attr: params[:attr] }}) do
      render
    end
  end

  def content_for
    @hello = "Hello Slim!"
  end

  def helper
  end
end

Version data entries

47 entries across 47 versions & 5 rubygems

Version Path
brakeman-3.7.2 bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/controllers/slim_controller.rb
brakeman-3.7.1 bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/controllers/slim_controller.rb
brakeman-3.7.0 bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/controllers/slim_controller.rb
brakeman-3.6.2 bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/controllers/slim_controller.rb
slim-3.0.8 test/rails/app/controllers/slim_controller.rb
brakeman-3.6.1 bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/controllers/slim_controller.rb
brakeman-3.6.0 bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/controllers/slim_controller.rb
brakeman-3.5.0 bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/controllers/slim_controller.rb
brakeman-3.4.1 bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/controllers/slim_controller.rb
brakeman-3.4.0 bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/controllers/slim_controller.rb
brakeman-3.3.5 bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/controllers/slim_controller.rb
brakeman-3.3.4 bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/controllers/slim_controller.rb
brakeman-3.3.3 bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/controllers/slim_controller.rb
brakeman-3.3.2 bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/controllers/slim_controller.rb
brakeman-3.3.1 bundle/ruby/2.3.0/gems/slim-3.0.7/test/rails/app/controllers/slim_controller.rb
slim-3.0.7 test/rails/app/controllers/slim_controller.rb
brakeman-3.3.0 bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/controllers/slim_controller.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/slim-3.0.6/test/rails/app/controllers/slim_controller.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/slim-3.0.6/test/rails/app/controllers/slim_controller.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/slim-3.0.6/test/rails/app/controllers/slim_controller.rb