Sha256: 9fdea1f551bf07fac35082398e5702839fc3e59c7872c6c52ef4c1e43e57c386

Contents?: true

Size: 350 Bytes

Versions: 36

Compression:

Stored size: 350 Bytes

Contents

module ActiveScaffold
  module DateSelectExtension
    private

    def datetime_selector(options, html_options)
      options[:prefix] = options[:name].gsub(/\[[^\[]*\]$/, '') if options[:name]
      super(options, html_options)
    end
  end
end
ActionView::Helpers::Tags::DateSelect.class_eval do
  prepend ActiveScaffold::DateSelectExtension
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
active_scaffold-3.7.8 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.7.7 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.7.6 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.7.5 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.7.2 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.7.1 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.7.0 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.20 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.19 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.17 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.15 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.14 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.13 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.12 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.11.1 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.11 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.10 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.9 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.8 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.6 lib/active_scaffold/extensions/name_option_for_datetime.rb