I hereby claim:
- I am despinozac on github.
- I am despinozac (https://keybase.io/despinozac) on keybase.
- I have a public key ASBJXd3SzehhJNqmIYf9m5Jwb4myn58ubKRd7CMkfgZQywo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| module Auditable | |
| extend ActiveSupport::Concern | |
| # Array de exclusion de auditoŕia | |
| BLACK_LIST = ["created_at", "updated_at", "metadata"] | |
| included do | |
| before_update :audit_record_update |
| def cuadrado(n) | |
| n*n | |
| end | |
| def cubo(n) | |
| n*n*n | |
| end | |
| def cuarta(n) | |
| n*n*n*n |
| ActiveSupport::Inflector.inflections do |inflect| | |
| inflect.plural(/$/, 's') | |
| inflect.plural(/([^aeéiou])$/i, '\1es') | |
| inflect.plural(/([aeiou]s)$/i, '\1') | |
| inflect.plural(/z$/i, 'ces') | |
| inflect.plural(/á([sn])$/i, 'a\1es') | |
| inflect.plural(/é([sn])$/i, 'e\1es') | |
| inflect.plural(/í([sn])$/i, 'i\1es') | |
| inflect.plural(/ó([sn])$/i, 'o\1es') | |
| inflect.plural(/ú([sn])$/i, 'u\1es') |