Sha256: 744d57f42a60c327daff3489ff9471553a5fda43a21b01a605c2551b3f01a618

Contents?: true

Size: 444 Bytes

Versions: 60

Compression:

Stored size: 444 Bytes

Contents

root       = exports ? window

# TODO better way to get core model definition
# model = require ...

# TODO implement method
# model[resource].validators_on 'field' # Get all validators related to this field

extend      = require('assimilate')

extensions =
  model:
    human_attribute_name: (attribute_name) ->
      @translation?.attributes?[attribute_name] or attribute_name

model.mix (modelable) ->
  extend modelable, extensions.model

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
ende-0.5.22 components/indefinido/indemma/master/src/lib/record/translationable.coffee
ende-0.5.21 components/indefinido/indemma/master/src/lib/record/translationable.coffee
ende-0.4.25 vendor/components/indefinido-indemma/src/lib/record/translationable.coffee
ende-0.4.24 vendor/components/indefinido-indemma/src/lib/record/translationable.coffee
ende-0.4.23 vendor/components/indefinido-indemma/src/lib/record/translationable.coffee
ende-0.5.1 components/indefinido/indemma/master/src/lib/record/translationable.coffee
ende-0.4.22 vendor/components/indefinido-indemma/src/lib/record/translationable.coffee
ende-0.4.21 vendor/components/indefinido-indemma/src/lib/record/translationable.coffee
ende-0.5.0 vendor/components/indefinido-indemma/src/lib/record/translationable.coffee
ende-0.4.20 vendor/components/indefinido-indemma/src/lib/record/translationable.coffee
ende-0.4.19 vendor/components/indefinido-indemma/src/lib/record/translationable.coffee
ende-0.4.18 vendor/components/indefinido-indemma/src/lib/record/translationable.coffee
ende-0.4.17 vendor/components/indefinido-indemma/src/lib/record/translationable.coffee
ende-0.4.16 vendor/components/indefinido-indemma/src/lib/record/translationable.coffee
ende-0.3.13 vendor/components/indefinido-indemma/src/lib/record/translationable.coffee
ende-0.3.12 vendor/components/indefinido-indemma/src/lib/record/translationable.coffee
ende-0.3.11 vendor/components/indefinido-indemma/src/lib/record/translationable.coffee
ende-0.4.15 vendor/components/indefinido-indemma/src/lib/record/translationable.coffee
ende-0.4.14 vendor/components/indefinido-indemma/src/lib/record/translationable.coffee
ende-0.4.13 vendor/components/indefinido-indemma/src/lib/record/translationable.coffee