Sha256: 911d23c8ae8093de62ffd6c678005fe635cf044c0c3018c9e0fbcd4029b8ecff
Contents?: true
Size: 334 Bytes
Versions: 3
Compression:
Stored size: 334 Bytes
Contents
class SelectComponent < BaseComponent def form @options = case field.options[:select] when Symbol then parent_controller.view_context.send field.options[:select] when Proc then field.options[:select].bind(parent_controller).call else field.options[:select] end super end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
puffer-0.0.29 | app/components/select_component.rb |
puffer-0.0.28 | app/components/select_component.rb |
puffer-0.0.26 | app/components/select_component.rb |