Module: Adminpanel::Twitter
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/adminpanel/twitter.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#has_valid_tweet? ⇒ Boolean
12 13 14 15 16 17 18 |
# File 'app/models/concerns/adminpanel/twitter.rb', line 12 def has_valid_tweet? if self..length <= 140 true else false end end |
#share_link ⇒ Object
8 9 10 |
# File 'app/models/concerns/adminpanel/twitter.rb', line 8 def share_link 'http://www.google.com' end |