Sha256: a9c3860762a4aa7c0f7564d8f9a9a5b5e5097c2b863dd6a265e579a7d578b46d

Contents?: true

Size: 261 Bytes

Versions: 1

Compression:

Stored size: 261 Bytes

Contents

class Brut::FrontEnd::Components::Inputs::CsrfToken < Brut::FrontEnd::Components::Input
  def initialize(csrf_token:)
    @csrf_token = csrf_token
  end
  def render
    html_tag(:input, type: "hidden", name: "authenticity_token", value: @csrf_token)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
brut-0.0.1 lib/brut/front_end/components/inputs/csrf_token.rb