Skip to content

Respect database precision #10

@sobrinho

Description

@sobrinho

Hi mate :)

We are working in a project that have a lot of decimal columns with different precisions.

Currently we are workarounding with decorators:

class PublicityDecorator < Decorator
  def value
    helpers.number_with_precision super, :precision => 4
  end
end

I think where we want to display a different precision is where we should implement something like decorators to override precision.

What you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions