Sha256: 0325a9fc27324cc4a071f8a07054bcdc425f118d623058539d62f407eba7ce20

Contents?: true

Size: 236 Bytes

Versions: 5

Compression:

Stored size: 236 Bytes

Contents

class BooleanComponent < BaseComponent

  def index
    render
  end

  def update
    opts[:record] = resource.member
    opts[:record].update_attributes field.to_s => !opts[:record].call_chain(field.to_s)
    replace :index
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
puffer-0.0.29 app/components/boolean_component.rb
puffer-0.0.28 app/components/boolean_component.rb
puffer-0.0.26 app/components/boolean_component.rb
puffer-0.0.25 app/components/boolean_component.rb
puffer-0.0.24 app/components/boolean_component.rb