module ActiveScaffold::DateSelectExtension
Public Class Methods
included(base)
click to toggle source
# File lib/active_scaffold/extensions/name_option_for_datetime.rb, line 7 def self.included(base) base.class_eval do alias_method_chain :datetime_selector, :name private :datetime_selector_without_name, :datetime_selector_with_name, :datetime_selector end end
Public Instance Methods
datetime_selector_with_name(options, html_options)
click to toggle source
# File lib/active_scaffold/extensions/name_option_for_datetime.rb, line 3 def datetime_selector_with_name(options, html_options) options.merge!(:prefix => options[:name].gsub(/\[[^\[]*\]$/,'')) if options[:name] datetime_selector_without_name(options, html_options) end