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.6.5 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.4.1 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.4 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.3 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.2 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.1 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.0 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.0.rc2 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.0.rc1 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.5.5 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.6.0.pre lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.5.4 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.5.3 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.5.2 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.5.1 lib/active_scaffold/extensions/name_option_for_datetime.rb
active_scaffold-3.5.0 lib/active_scaffold/extensions/name_option_for_datetime.rb