Module: Concerns::FestivityArtistMethods
- Includes:
- ActiveSupport::Concern
- Included in:
- FestivityEventPage, FestivityMarketPage
- Defined in:
- app/models/concerns/festivity_artist_methods.rb
Instance Method Summary collapse
- #has_facebook? ⇒ Boolean
- #has_homepage? ⇒ Boolean
- #has_instagram? ⇒ Boolean
- #has_social? ⇒ Boolean
- #has_twitter? ⇒ Boolean
Instance Method Details
#has_facebook? ⇒ Boolean
14 15 16 |
# File 'app/models/concerns/festivity_artist_methods.rb', line 14 def has_facebook? !self.artist_facebook.empty? end |
#has_homepage? ⇒ Boolean
22 23 24 |
# File 'app/models/concerns/festivity_artist_methods.rb', line 22 def has_homepage? !self.artist_homepage.empty? end |
#has_instagram? ⇒ Boolean
18 19 20 |
# File 'app/models/concerns/festivity_artist_methods.rb', line 18 def has_instagram? !self.artist_instagram.empty? end |
#has_social? ⇒ Boolean
6 7 8 |
# File 'app/models/concerns/festivity_artist_methods.rb', line 6 def (has_twitter? or has_facebook? or has_homepage? or has_instagram?) end |
#has_twitter? ⇒ Boolean
10 11 12 |
# File 'app/models/concerns/festivity_artist_methods.rb', line 10 def has_twitter? !self.artist_twitter.empty? end |