Module: ActiveRecord::Commentator
- Defined in:
- lib/active_record/commentator.rb,
lib/active_record/commentator/version.rb,
lib/active_record/commentator/configuration.rb
Defined Under Namespace
Modules: Configuration
Constant Summary collapse
- VERSION =
"0.1.0"
Instance Method Summary collapse
-
#execute(sql, name = nil) ⇒ Object
ActiveRecord::ConnectionAdapters::DatabaseStatements#execute.
Instance Method Details
#execute(sql, name = nil) ⇒ Object
ActiveRecord::ConnectionAdapters::DatabaseStatements#execute
7 8 9 10 |
# File 'lib/active_record/commentator.rb', line 7 def execute(sql, name = nil) new_sql = write_comment_to_sql(sql, fetch_execute_location) super(new_sql, name) end |