Sha256: e135d838be3714735b528dfeb753225d634838c6b221a96d00e3c6d2c1901897

Contents?: true

Size: 275 Bytes

Versions: 8

Compression:

Stored size: 275 Bytes

Contents

class DateTimeComponent < BaseComponent

  def form
    @format = case field.type
      when :date                    then '%Y-%m-%d'
      when :time                    then '%H:%M:%S'
      when :datetime, :timestamp    then '%Y-%m-%d %H:%M:%S'
    end
    super
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
puffer-0.0.32 app/components/date_time_component.rb
puffer-0.0.31 app/components/date_time_component.rb
puffer-0.0.30 app/components/date_time_component.rb
puffer-0.0.29 app/components/date_time_component.rb
puffer-0.0.28 app/components/date_time_component.rb
puffer-0.0.26 app/components/date_time_component.rb
puffer-0.0.25 app/components/date_time_component.rb
puffer-0.0.24 app/components/date_time_component.rb