Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:wayneeseguin/sequel-model
Browse files Browse the repository at this point in the history
Conflicts:

	lib/sequel_model.rb
  • Loading branch information
wayneeseguin committed Feb 15, 2008
2 parents 9b3d026 + 2962821 commit 51d6556
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/sequel_model.rb
Expand Up @@ -4,7 +4,6 @@ class Model
end
end

# TODO: add relationships when complete:
files = %w[
base hooks record schema relations
caching plugins validations relationships
Expand Down Expand Up @@ -238,13 +237,16 @@ module Sequel
# Post.drop_table
# Post.create_table! # drops the table if it exists and then recreates it
#


class Model

# Returns a string representation of the model instance including
# the class name and values.
def inspect
"#<%s @values=%s>" % [self.class.name, @values.inspect]
end

# Defines a method that returns a filtered dataset.
def self.subset(name, *args, &block)
dataset.meta_def(name) {filter(*args, &block)}
Expand Down

0 comments on commit 51d6556

Please sign in to comment.