Sha256: 70031270e782513cfc0b14be9803a627f3f7d29e84d6b231819484f045820683

Contents?: true

Size: 346 Bytes

Versions: 11

Compression:

Stored size: 346 Bytes

Contents

<%# @param object [model] model instance %>
<%# @param field_name [String] name of the field %>
<%# @param value [Object] value of the field %>
<%# @param metadata [Hash] metadata of the field %>
<%= if value.nil?
  null
else
  value = Time.zone.parse value if value.is_a? String
  value = value.to_date if value.is_a? Time
  I18n.l value
end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wallaby-8.0.0 app/views/wallaby/resources/index/_date.html.erb
wallaby-7.0.0 app/views/wallaby/resources/index/_date.html.erb
wallaby-7.0.0.beta2 app/views/wallaby/resources/index/_date.html.erb
wallaby-7.0.0.beta1 app/views/wallaby/resources/index/_date.html.erb
wallaby-6.1.6 app/views/wallaby/resources/index/_date.html.erb
wallaby-6.1.5 app/views/wallaby/resources/index/_date.html.erb
wallaby-6.1.4 app/views/wallaby/resources/index/_date.html.erb
wallaby-6.1.3 app/views/wallaby/resources/index/_date.html.erb
wallaby-6.1.2 app/views/wallaby/resources/index/_date.html.erb
wallaby-6.1.1 app/views/wallaby/resources/index/_date.html.erb
wallaby-6.1.0 app/views/wallaby/resources/index/_date.html.erb