Permalink
Browse files

Add ajax to dependencies and require only system/string instead of en…

…tire foundation
  • Loading branch information...
1 parent 5fecd2b commit 2f927bae5c56cd39df3d1bde007bd765aa0137f6 @drogus committed May 14, 2011
Showing with 6 additions and 5 deletions.
  1. +3 −3 Buildfile
  2. +1 −1 Gemfile
  3. +2 −1 frameworks/foundation/data_sources/bulk.js
View
6 Buildfile
@@ -1,7 +1,7 @@
config :all,
- :required => ['sproutcore/datastore'],
- :test_required => ['sproutcore/foundation', 'sproutcore/datastore'],
- :debug_required => ['sproutcore/foundation', 'sproutcore/datastore']
+ :required => ['sproutcore/datastore', 'sproutcore/ajax'],
+ :test_required => ['sproutcore/foundation', 'sproutcore/datastore', 'sproutcore/ajax'],
+ :debug_required => ['sproutcore/foundation', 'sproutcore/datastore', 'sproutcore/ajax']
# CORE FRAMEWORKS
config :foundation, :required => []
View
2 Gemfile
@@ -1 +1 @@
-gem "sproutcore", "1.5.0.rc.2", :git => "git@github.com:sproutcore/abbot.git"
+gem "sproutcore", :path => "/Users/drogus/projekty/sproutcore/abbot"
View
3 frameworks/foundation/data_sources/bulk.js
@@ -4,14 +4,15 @@
@extends SC.DataSource
*/
+sc_require('system/string');
SC.BulkDataSource = SC.DataSource.extend(
/** @scope SC.BulkDataStore.prototype */ {
bulkApiUrl: function(store) {
return store.bulkApiUrl || "/api/bulk";
},
pluralResourceName: function(recordType) {
- return recordType.pluralResourceName || recordType.resourceName.pluralize();
+ return recordType.pluralResourceName || SC.String.pluralize(recordType.resourceName);
},
// ..........................................................
// QUERY SUPPORT

0 comments on commit 2f927ba

Please sign in to comment.