Module: SimpleQueryTool
- Defined in:
- lib/simple_query_tool.rb
Instance Attribute Summary collapse
-
#db_adapter ⇒ Object
will try to default to ActiveRecord::Base components if you don’t specify an adapter.
Instance Method Summary collapse
Instance Attribute Details
#db_adapter ⇒ Object
will try to default to ActiveRecord::Base components if you don’t specify an adapter
6 7 8 |
# File 'lib/simple_query_tool.rb', line 6 def db_adapter @db_adapter end |
Instance Method Details
#initialize(params = {}) ⇒ Object
8 9 10 11 12 |
# File 'lib/simple_query_tool.rb', line 8 def initialize(params={}) params.each_pair { |attrib, value| instance_variable_set :"@#{attrib}", value } @db_adapter ||= ActiveRecord::Base super() end |