Sha256: c8652b4943b50a22850f100b83fd3de19876d96fc1011e9ddefa5ac2809ddf07
Contents?: true
Size: 1.29 KB
Versions: 1
Compression:
Stored size: 1.29 KB
Contents
module Ccls::ActionViewExtension::FormBuilder def self.included(base) base.send(:include,InstanceMethods) end module InstanceMethods # NOTE # calling <%= f.wrapped_yndk_select :code %> will NOT call these methods. # It will call the method missing and then the @template.method # Actually, now I believe that it will. # def yndk_select(method,options={},html_options={}) @template.select(object_name, method, YNDK.selector_options, {:include_blank => true}.merge(objectify_options(options)), html_options) end def ynrdk_select(method,options={},html_options={}) @template.select(object_name, method, YNRDK.selector_options, {:include_blank => true}.merge(objectify_options(options)), html_options) end def ynodk_select(method,options={},html_options={}) @template.select(object_name, method, YNODK.selector_options, {:include_blank => true}.merge(objectify_options(options)), html_options) end def adna_select(method,options={},html_options={}) @template.select(object_name, method, ADNA.selector_options, {:include_blank => true}.merge(objectify_options(options)), html_options) end end # module InstanceMethods end # module Ccls::ActionViewExtension::FormBuilder ActionView::Helpers::FormBuilder.send(:include, Ccls::ActionViewExtension::FormBuilder )
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ccls-ccls_engine-3.11.0 | lib/ccls_engine/action_view_extension/form_builder.rb |