Method: Sequel::Plugins::SqlComments::ClassMethods#sql_comments_dataset_methods
- Defined in:
- lib/sequel/plugins/sql_comments.rb
#sql_comments_dataset_methods(*meths) ⇒ Object
Use automatic SQL comments for the given dataset methods.
91 92 93 94 95 96 |
# File 'lib/sequel/plugins/sql_comments.rb', line 91 def sql_comments_dataset_methods(*meths) unless @_sql_comments_dataset_module dataset_module(@_sql_comments_dataset_module = Sequel.set_temp_name(Module.new){"#{name}::@_sql_comments_dataset_module"}) end _sql_comments_methods(@_sql_comments_dataset_module, :dataset, meths) end |