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

Version Path
trusty-festivity-extension-2.6.3 app/models/concerns/festivity_artist_methods.rb
trusty-festivity-extension-2.6.2 app/models/concerns/festivity_artist_methods.rb
trusty-festivity-extension-2.6.1 app/models/concerns/festivity_artist_methods.rb
trusty-festivity-extension-2.6 app/models/concerns/festivity_artist_methods.rb
trusty-festivity-extension-2.5.19 app/models/concerns/festivity_artist_methods.rb
trusty-festivity-extension-2.5.18 app/models/concerns/festivity_artist_methods.rb
trusty-festivity-extension-2.5.17 app/models/concerns/festivity_artist_methods.rb
trusty-festivity-extension-2.5.16 app/models/concerns/festivity_artist_methods.rb
trusty-festivity-extension-2.5.15 app/models/concerns/festivity_artist_methods.rb
trusty-festivity-extension-2.5.14 app/models/concerns/festivity_artist_methods.rb
trusty-festivity-extension-2.5.13 app/models/concerns/festivity_artist_methods.rb
trusty-festivity-extension-2.5.12 app/models/concerns/festivity_artist_methods.rb
trusty-festivity-extension-2.5.11 app/models/concerns/festivity_artist_methods.rb
trusty-festivity-extension-2.5.10 app/models/concerns/festivity_artist_methods.rb
trusty-festivity-extension-2.5.9 app/models/concerns/festivity_artist_methods.rb
trusty-festivity-extension-2.5.8 app/models/concerns/festivity_artist_methods.rb
trusty-festivity-extension-2.5.7 app/models/concerns/festivity_artist_methods.rb
trusty-festivity-extension-2.5.6 app/models/concerns/festivity_artist_methods.rb
trusty-festivity-extension-2.5.5 app/models/concerns/festivity_artist_methods.rb
trusty-festivity-extension-2.5.4 app/models/concerns/festivity_artist_methods.rb