adva 0.2.2 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/content.rb +8 -0
- data/app/views/admin/page/articles/_form.html.erb +1 -1
- data/lib/adva/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0e7e2c699ec74ef78dc82a987aee784782e4ebd541a13eb5d315eed394fa88f
|
4
|
+
data.tar.gz: baec20dd5bb548f0696b26935872d7b547746608f3957a98ac5e92f1530b4b25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ac4c3e3fc9bfccc631127c95ec7c5d8d393a3223ca068390b30cea6e5578403988a1d9d6bda81f2920588ba796a2210540c7a6ad2bf053cf241750f07715408
|
7
|
+
data.tar.gz: 2558c1c926dfaba6acdaf51d877ae90cd89b698e0d62ff0a3e37a1c66f8cd672458d990673d4f8cecde597ec25e73f0a54285f533f0b18debdc64bbac04803d5
|
data/app/models/content.rb
CHANGED
@@ -2,6 +2,13 @@ require "adva/has_permalink"
|
|
2
2
|
require "adva/belongs_to_author"
|
3
3
|
|
4
4
|
class Content < ActiveRecord::Base
|
5
|
+
# Fix STI in dev
|
6
|
+
unless Rails.application.config.eager_load
|
7
|
+
def self.find_sti_class(type_name)
|
8
|
+
eval(type_name.to_s)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
5
12
|
acts_as_nested_set :scope => :section_id
|
6
13
|
|
7
14
|
acts_as_taggable
|
@@ -145,3 +152,4 @@ class Content < ActiveRecord::Base
|
|
145
152
|
end
|
146
153
|
end
|
147
154
|
end
|
155
|
+
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<%= f.label :draft, "Save as Draft?" %>
|
34
34
|
<%= f.check_box :draft?, label: "Yes, save this article as a draft" %>
|
35
35
|
|
36
|
-
<p class="
|
36
|
+
<p class="show-if-previous-unchecked">
|
37
37
|
<%= f.label :published_at, "Publish on this date" %>
|
38
38
|
<%= f.datetime_select :published_at,
|
39
39
|
start_year: (@article.published_at || Time.zone.now).year-1,
|
data/lib/adva/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adva
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Geisel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: will_paginate
|