Sha256: 07bbae96f2d2e79ded5cc1542debefc776a3f9bc28f9d4a2fe19978f31bc3c1b

Contents?: true

Size: 189 Bytes

Versions: 3

Compression:

Stored size: 189 Bytes

Contents

require 'active_record'

module Web
  class Portlet < ActiveRecord::Base
    def title
      p = Web::PortletName.find_by_portletid(self.portletid)
      p ? p.title : nil
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
caterpillar-0.9.4 lib/web/portlet.rb
caterpillar-0.9.5 lib/web/portlet.rb
caterpillar-0.9.6 lib/web/portlet.rb