Permalink
Browse files

Use SuperModel

  • Loading branch information...
1 parent 0c7204a commit 5539aad4d9de261c2e4695a96c36aa79bd2c769d @maccman committed Feb 8, 2010
View
@@ -142,7 +142,7 @@ $.bowline.helper('name', 'arg1', ['arg2'])
Bowline supports ActiveRecord and the Sqlite3 database.
The packaging for distributing databases is still in development though.
-Bowline also has a LocalModel class for models held in memory.
+You can use the SuperModel gem (http://github.com/maccman/supermodel) for models held in memory.
= WINDOWS
View
@@ -1,4 +1,6 @@
-class Tweet < Bowline::LocalModel
+require "supermodel"
+
+class Tweet < SuperModel::Base
class << self
def poll
destroy_all
View
@@ -29,7 +29,6 @@ module Base
require 'bowline/logging'
require 'bowline/watcher'
-require 'bowline/local_model'
require 'bowline/platform'
require 'bowline/library'
@@ -11,8 +11,8 @@ class << self
# the binder's callbacks are executed and the view
# updated accordingly.
#
- # Classes inheriting fromActiveRecord and Bowline::LocalModel are
- # automatically compatable, but if you're using your own custom model
+ # Classes inheriting from ActiveRecord and SuperModel are
+ # automatically compatible, but if you're using your own custom model
# you need to make sure it responds to the following methods:
# * all - return all records
# * find(id) - find record by id
@@ -18,7 +18,7 @@ def setup(*args) #:nodoc
# the binder's callbacks are executed and the view
# updated accordingly.
#
- # Classes inheriting fromActiveRecord and Bowline::LocalModel are
+ # Classes inheriting from ActiveRecord and SuperModel are
# automatically compatable, but if you're using your own custom model
# you need to make sure it responds to the following methods:
# * all - return all records
@@ -6,7 +6,7 @@ class ModelGenerator < NamedGenerator
def class_name
if local
- super + " < Bowline::LocalModel"
+ super + " < SuperModel::Base"
else
super + " < ActiveRecord::Base"
end

0 comments on commit 5539aad

Please sign in to comment.