devworkstecnology/webadmin

View on GitHub
app/models/web_admin/album.rb

Summary

Maintainability
A
0 mins
Test Coverage
module WebAdmin
  class Album < ActiveRecord::Base
    include I18n::Alchemy

    has_many :images

    validates :title, :date, :local, presence: true

    def to_s
      title
    end
  end
end