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.2 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.4.24 vendor/components/indefinido-indemma/lib/record/translationable.js
ende-0.4.23 vendor/components/indefinido-indemma/lib/record/translationable.js
ende-0.5.1 components/indefinido/indemma/master/lib/record/translationable.js
ende-0.4.22 vendor/components/indefinido-indemma/lib/record/translationable.js
ende-0.4.21 vendor/components/indefinido-indemma/lib/record/translationable.js
ende-0.5.0 vendor/components/indefinido-indemma/lib/record/translationable.js
ende-0.4.20 vendor/components/indefinido-indemma/lib/record/translationable.js
ende-0.4.19 vendor/components/indefinido-indemma/lib/record/translationable.js
ende-0.4.18 vendor/components/indefinido-indemma/lib/record/translationable.js
ende-0.4.17 vendor/components/indefinido-indemma/lib/record/translationable.js
ende-0.4.16 vendor/components/indefinido-indemma/lib/record/translationable.js
ende-0.3.13 vendor/components/indefinido-indemma/lib/record/translationable.js
ende-0.3.12 vendor/components/indefinido-indemma/lib/record/translationable.js
ende-0.3.11 vendor/components/indefinido-indemma/lib/record/translationable.js
ende-0.4.15 vendor/components/indefinido-indemma/lib/record/translationable.js
ende-0.4.14 vendor/components/indefinido-indemma/lib/record/translationable.js
ende-0.4.13 vendor/components/indefinido-indemma/lib/record/translationable.js
ende-0.4.12 vendor/components/indefinido-indemma/lib/record/translationable.js
ende-0.4.11 vendor/components/indefinido-indemma/lib/record/translationable.js