Removes unused file and style

This commit is contained in:
Alberto Garcia Cabeza
2016-05-23 19:05:16 +02:00
parent 5c166dc8ee
commit 7d1bf7344a
2 changed files with 0 additions and 21 deletions

View File

@@ -106,7 +106,6 @@ body.admin {
a { a {
color: white\9 !important; color: white\9 !important;
color: red\9 !important;
} }
ul { ul {

View File

@@ -1,20 +0,0 @@
class Banner < ActiveRecord::Base
acts_as_paranoid column: :hidden_at
include ActsAsParanoidAliases
validates :title, presence: true,
length: { minimum: 2 }
validates :description, presence: true
validates :target_url, presence: true
validates :style, presence: true
validates :image, presence: true
validates :post_started_at, presence: true
validates :post_ended_at, presence: true
scope :with_active, -> {where("post_started_at <= ?", Time.now).
where("post_ended_at >= ?", Time.now) }
scope :with_inactive,-> {where("post_started_at > ? or post_ended_at < ?", Time.now, Time.now) }
end