Removes unused file and style
This commit is contained in:
@@ -106,7 +106,6 @@ body.admin {
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
color: white\9 !important;
|
color: white\9 !important;
|
||||||
color: red\9 !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
|
|||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user