Sha256: 4945730b3b877ba0dd544fe7335b96e2a7c7b3a5118f04218e3e0d349e34650b

Contents?: true

Size: 433 Bytes

Versions: 25

Compression:

Stored size: 433 Bytes

Contents

module Adminpanel
  module Twitter
    extend ActiveSupport::Concern
    included do
      attr_accessor :twitter_message
    end

    def share_link
      'http://www.google.com'
    end

    def has_valid_tweet?
      if self.twitter_message.length <= 140
        true
      else
        false
      end
    end

    # static(class) methods
    module ClassMethods
      def twitter_share?
        true
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
adminpanel-3.3.0 app/models/concerns/adminpanel/twitter.rb
adminpanel-3.2.1 app/models/concerns/adminpanel/twitter.rb
adminpanel-3.2.0 app/models/concerns/adminpanel/twitter.rb
adminpanel-3.1.0 app/models/concerns/adminpanel/twitter.rb
adminpanel-3.0.0 app/models/concerns/adminpanel/twitter.rb
adminpanel-2.6.1 app/models/concerns/adminpanel/twitter.rb
adminpanel-2.6.0 app/models/concerns/adminpanel/twitter.rb
adminpanel-2.5.5 app/models/concerns/adminpanel/twitter.rb
adminpanel-2.5.4 app/models/concerns/adminpanel/twitter.rb
adminpanel-2.5.3 app/models/concerns/adminpanel/twitter.rb
adminpanel-2.5.2 app/models/concerns/adminpanel/twitter.rb
adminpanel-2.5.1 app/models/concerns/adminpanel/twitter.rb
adminpanel-2.5.0 app/models/concerns/adminpanel/twitter.rb
adminpanel-2.4.3 app/models/concerns/adminpanel/twitter.rb
adminpanel-2.4.2 app/models/concerns/adminpanel/twitter.rb
adminpanel-2.4.1 app/models/concerns/adminpanel/twitter.rb
adminpanel-2.4.0 app/models/concerns/adminpanel/twitter.rb
adminpanel-2.3.1 app/models/concerns/adminpanel/twitter.rb
adminpanel-2.3.0 app/models/concerns/adminpanel/twitter.rb
adminpanel-2.2.5 app/models/concerns/adminpanel/twitter.rb