Skip to content

Commit

Permalink
release 1.0.0-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdonohoo committed Dec 27, 2014
1 parent f7b0554 commit b9c4816
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "resourcify",
"version": "0.7.0",
"version": "1.0.0-rc.1",
"authors": [
"Erik Donohoo <[email protected]>"
],
Expand Down
6 changes: 6 additions & 0 deletions dist/resourcify.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,14 @@ function resourcificator ($http, $q, utils, Cache) {

config.url = config.url ? $q.when(config.url) : null;
config.$Const = Constructor;
config.isInstance = (config.isInstance == null) ? true : config.isInstance;
config.config = config.config || {};

// No before/after on class level
if (config.isInstance === false && (config.before || config.after)) {
throw new Error('Before/After functions not supported on Class level requests');
}

if (config.isInstance) {
Constructor.prototype[config.name] = generateRequest(config);
Constructor.prototype[config.name].withConfig = function () {
Expand Down
4 changes: 2 additions & 2 deletions dist/resourcify.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "resourcify",
"version": "0.7.0",
"version": "1.0.0-rc.1",
"description": "Dead simple rich data models for angular",
"main": "Gruntfile.js",
"scripts": {
Expand Down

0 comments on commit b9c4816

Please sign in to comment.