Module: Auth::Concerns::EsConcern
- Extended by:
- ActiveSupport::Concern
- Includes:
- Mongoid::Document
- Included in:
- Action, Shopping::CartConcern, Shopping::DiscountConcern, Shopping::PersonalityConcern, Shopping::PlaceConcern, Shopping::ProductConcern, UserConcern, Workflow::Assembly
- Defined in:
- app/models/auth/concerns/es_concern.rb
Instance Method Summary collapse
-
#add_created_at ⇒ Object
def created_at=(created_at) super(created_at) return unless self.created_at human_readable = self.created_at.strftime(“%B %-d %Y”) self.tags << human_readable unless self.tags.include? human_readable.
- #clear_autocomplete_data ⇒ Object
- #set_autocomplete_description ⇒ Object
- #set_autocomplete_tags ⇒ Object
- #set_primary_link ⇒ Object
- #set_secondary_links ⇒ Object
Instance Method Details
#add_created_at ⇒ Object
def created_at=(created_at) super(created_at) return unless self.created_at human_readable = self.created_at.strftime(“%B %-d %Y”) self.tags << human_readable unless self.tags.include? human_readable
self.masked_tags << human_readable unless self.tags.include? human_readable end
235 236 237 238 |
# File 'app/models/auth/concerns/es_concern.rb', line 235 def add_created_at human_readable = self.created_at.strftime("%B %-d %Y") if self.created_at self. << human_readable unless self..include? human_readable end |
#clear_autocomplete_data ⇒ Object
240 241 242 243 244 245 246 |
# File 'app/models/auth/concerns/es_concern.rb', line 240 def clear_autocomplete_data self.primary_link = nil self.secondary_links.clear self.autocomplete_description = nil self..clear self..clear end |
#set_autocomplete_description ⇒ Object
214 215 216 |
# File 'app/models/auth/concerns/es_concern.rb', line 214 def set_autocomplete_description end |
#set_autocomplete_tags ⇒ Object
202 203 204 |
# File 'app/models/auth/concerns/es_concern.rb', line 202 def end |
#set_primary_link ⇒ Object
206 207 208 |
# File 'app/models/auth/concerns/es_concern.rb', line 206 def set_primary_link end |
#set_secondary_links ⇒ Object
210 211 212 |
# File 'app/models/auth/concerns/es_concern.rb', line 210 def set_secondary_links end |