Skip to content

Commit

Permalink
Don't add eager and eager_graph to Model::DATASET_METHODS
Browse files Browse the repository at this point in the history
These methods should be added by the associations plugin, they
shouldn't be a basic part of Sequel::Model.
  • Loading branch information
jeremyevans committed Apr 2, 2013
1 parent 1487607 commit bdc00f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sequel/model.rb
Expand Up @@ -72,7 +72,7 @@ class Model

# Class methods added to model that call the method of the same name on the dataset
DATASET_METHODS = (Dataset::ACTION_METHODS + Dataset::QUERY_METHODS +
[:eager, :eager_graph, :each_page, :each_server, :print]) - [:and, :or, :[], :[]=, :columns, :columns!]
[:each_page, :each_server, :print]) - [:and, :or, :[], :[]=, :columns, :columns!]

# Class instance variables to set to nil when a subclass is created, for -w compliance
EMPTY_INSTANCE_VARIABLES = [:@overridable_methods_module, :@db]
Expand Down

0 comments on commit bdc00f7

Please sign in to comment.