Sha256: 957c1ff8d58871173c1b77db0ac14c0f5d441981610926a8940f900ab4e4dbae

Contents?: true

Size: 242 Bytes

Versions: 1

Compression:

Stored size: 242 Bytes

Contents

module Flms
  class Page < ActiveRecord::Base
    attr_accessible :title, :url

    has_many :blocks_pages
    has_many :blocks, through: :blocks_pages

    validates :title, :url, presence: true

    def to_param
      url
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flms-0.0.1 app/models/flms/page.rb