Skip to content

Commit

Permalink
removing cattr_accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jul 26, 2010
1 parent 9b31687 commit 21cf9e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/arel.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'active_support/inflector'
require 'active_support/core_ext/class/attribute_accessors'
require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/object/blank'

Expand Down
11 changes: 10 additions & 1 deletion lib/arel/engines/sql/relations/table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@ module Arel
class Table
include Relation, Recursion::BaseCase

cattr_accessor :engine, :tables
@@engine = nil
@@tables = nil
class << self # FIXME: Do we really need these?
def engine; @@engine; end
def engine= e; @@engine = e; end

def tables; @@tables; end
def tables= e; @@tables = e; end
end

attr_reader :name, :engine, :table_alias, :options

def initialize(name, options = {})
Expand Down

0 comments on commit 21cf9e4

Please sign in to comment.