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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e08dd9649ae6dd11c6e37290d1117e0804a31f6fe8f5c351d075c04734f2818d
4
- data.tar.gz: f3b4606e63ccf7079f0da6e0310b31c6679f01d411027edb4e773fac8ae3ec99
3
+ metadata.gz: a0e7e2c699ec74ef78dc82a987aee784782e4ebd541a13eb5d315eed394fa88f
4
+ data.tar.gz: baec20dd5bb548f0696b26935872d7b547746608f3957a98ac5e92f1530b4b25
5
5
  SHA512:
6
- metadata.gz: f772ae34995d9068b01801c5176004a9a07c5c45e936235e80d82a2df626815d39143df4cb4f3a7576194f4336f921b6565930009fad1402f14a1169d9d532a8
7
- data.tar.gz: 8d7355b2338f519f4244155fcf6b43ecc833d4fc40b5d3ad2e3e427d077fe49a87d546af49a8292cd41b07f71087f41922407b9820a1a303743c20ef6002ddde
6
+ metadata.gz: 0ac4c3e3fc9bfccc631127c95ec7c5d8d393a3223ca068390b30cea6e5578403988a1d9d6bda81f2920588ba796a2210540c7a6ad2bf053cf241750f07715408
7
+ data.tar.gz: 2558c1c926dfaba6acdaf51d877ae90cd89b698e0d62ff0a3e37a1c66f8cd672458d990673d4f8cecde597ec25e73f0a54285f533f0b18debdc64bbac04803d5
@@ -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=".show-if-previous-unchecked">
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
@@ -1,3 +1,3 @@
1
1
  module Adva
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.4"
3
3
  end
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.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-08-23 00:00:00.000000000 Z
11
+ date: 2024-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: will_paginate