Sha256: ba47efc5b42b070b287b376ddce3ca9707e3c8502ce368c9d22c7593de4c5ee4
Contents?: true
Size: 485 Bytes
Versions: 1
Compression:
Stored size: 485 Bytes
Contents
module C80SocialNetworks class Link < ActiveRecord::Base has_and_belongs_to_many :types#, :join_table => 'c80_social_networks_links_types' scope :ord_asc, -> {order(:ord => :asc)} def type_title res = '' if self.types.count > 0 res = self.types.first.title end res end def type_awesome_icon_code res = '' if self.types.count > 0 res = self.types.first.awesome_icon_code end res end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
c80_social_networks-0.1.0.1 | app/models/c80_social_networks/link.rb |