module Gutentag::ActiveRecord::ClassMethods
Public Instance Methods
attribute_cast_code(attr_name)
click to toggle source
Calls superclass method
# File lib/gutentag/active_record/class_methods.rb, line 19 def attribute_cast_code(attr_name) attr_name == "tag_names" ? "v" : super end
create_time_zone_conversion_attribute?(attr_name, column)
click to toggle source
Calls superclass method
# File lib/gutentag/active_record/class_methods.rb, line 15 def create_time_zone_conversion_attribute?(attr_name, column) attr_name != "tag_names" && super end
skip_time_zone_conversion_for_attributes()
click to toggle source
Calls superclass method
# File lib/gutentag/active_record/class_methods.rb, line 9 def skip_time_zone_conversion_for_attributes super + [:tag_names] end
tagged_with(options)
click to toggle source
# File lib/gutentag/active_record/class_methods.rb, line 4 def tagged_with(options) Gutentag::TaggedWith.call self, options end