Module: Commento::Helpers::ClassMethods
- Defined in:
- lib/commento/helpers.rb
Instance Method Summary collapse
- #fetch_column_comment(column_name) ⇒ Object
- #fetch_table_comment ⇒ Object
- #instance ⇒ Object
- #set_column_comment(column_name, value = nil) ⇒ Object
- #set_table_comment(value = nil) ⇒ Object
Instance Method Details
#fetch_column_comment(column_name) ⇒ Object
24 25 26 |
# File 'lib/commento/helpers.rb', line 24 def fetch_column_comment(column_name) instance.fetch_column_comment(table_name, column_name) end |
#fetch_table_comment ⇒ Object
16 17 18 |
# File 'lib/commento/helpers.rb', line 16 def fetch_table_comment instance.fetch_table_comment(table_name) end |
#instance ⇒ Object
28 29 30 |
# File 'lib/commento/helpers.rb', line 28 def instance Commento.instance end |
#set_column_comment(column_name, value = nil) ⇒ Object
20 21 22 |
# File 'lib/commento/helpers.rb', line 20 def set_column_comment(column_name, value=nil) instance.set_column_comment(table_name, column_name, value) end |
#set_table_comment(value = nil) ⇒ Object
12 13 14 |
# File 'lib/commento/helpers.rb', line 12 def set_table_comment(value=nil) instance.set_table_comment(table_name, value) end |