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