Sha256: 5c94a81d3b7b603384c2f995b50cfb93bf3eaf9650542a4375478a60cfb50b64
Contents?: true
Size: 453 Bytes
Versions: 1
Compression:
Stored size: 453 Bytes
Contents
class BlockSelectorInput < SimpleForm::Inputs::CollectionSelectInput def input(wrapper_options) input_options[:hint] ||= 'Select a block from blocks on this page. You\'ll need to save the page after adding new blocks for them to appear in this list.' if object.try(:anchor).present? input_html_options[:data] ||= {} input_html_options[:data]['selected'] = object.anchor end super end def collection [] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forest_cms-0.98.1 | app/inputs/block_selector_input.rb |