Sha256: 060be6e9a53a1f1b7aa1eb338ad77c40c4e76240d0323b1ec815e19868c128db

Contents?: true

Size: 232 Bytes

Versions: 1

Compression:

Stored size: 232 Bytes

Contents

def with_date_format(format = "%m/%d/%Y")
  begin
    Datagrid.configure do |config|
      config.date_formats = format
    end
    yield
  ensure
    Datagrid.configure do |config|
      config.date_formats = nil
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datagrid-0.8.3 spec/support/configuration.rb