Sha256: f94c9f56de3fc9a6d9748dd5670dafb5892d873c0c3bc11a56066bede94d1214

Contents?: true

Size: 488 Bytes

Versions: 107

Compression:

Stored size: 488 Bytes

Contents

var extend, extensions, root;

root = typeof exports !== "undefined" && exports !== null ? exports : window;

extend = require('assimilate');

extensions = {
  model: {
    human_attribute_name: function(attribute_name) {
      var _ref, _ref1;

      return ((_ref = this.translation) != null ? (_ref1 = _ref.attributes) != null ? _ref1[attribute_name] : void 0 : void 0) || attribute_name;
    }
  }
};

model.mix(function(modelable) {
  return extend(modelable, extensions.model);
});

Version data entries

107 entries across 94 versions & 1 rubygems

Version Path
ende-0.5.22 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.5.21 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.5.20 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.5.19 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.5.18 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.5.17 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.5.16 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.5.15 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.5.14 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.5.13 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.5.12 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.5.10 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.5.9 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.5.8 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.5.7 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.5.6 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.4.25 vendor/components/indefinido-indemma/lib/record/translationable.js
ende-0.5.5 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.5.4 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.5.3 components/indefinido/indemma/master/lib/record/translationable.js