Sha256: 419ff46ed1c5ac8950e16b76367e975f6839d602312cb9c4c52d4ef3e682ca11
Contents?: true
Size: 461 Bytes
Versions: 24
Compression:
Stored size: 461 Bytes
Contents
module Concerns module FestivityArtistMethods include ActiveSupport::Concern def has_social? (has_twitter? or has_facebook? or has_homepage? or has_instagram?) end def has_twitter? !self.artist_twitter.empty? end def has_facebook? !self.artist_facebook.empty? end def has_instagram? !self.artist_instagram.empty? end def has_homepage? !self.artist_homepage.empty? end end end
Version data entries
24 entries across 24 versions & 1 rubygems