tkh_admin_panel 0.9.25 → 0.9.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e5b93b8b2ca5ff569c9850ab0913aaa2d8135b17
|
|
4
|
+
data.tar.gz: 77353f5cf5281bd03d515090b3cb40a58f82aa6e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84386820c909290f9df82e1c9e7a0cc21aba44f4916309664d46a33211da38fba10714503fb4dbc69a81d8beb4203bb01dec5151d7b65b503b55f482c1c9b23f
|
|
7
|
+
data.tar.gz: 4487aedc079bf50205a569ef1e9e10db64e55c26b004f73f914f2de38d74b2df5dbba0125bb18f0029e52c9fd7b2a95284cb318700436c7bf58fdf9d7ed92d89
|
data/CHANGELOG.md
CHANGED
data/lib/generators/tkh_admin_panel/create_or_update_migrations/templates/create_settings.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
class CreateSettings < ActiveRecord::Migration
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
def self.up
|
|
4
4
|
create_table :settings do |t|
|
|
5
5
|
t.string :site_name
|
|
@@ -12,19 +12,8 @@ class CreateSettings < ActiveRecord::Migration
|
|
|
12
12
|
t.timestamps
|
|
13
13
|
end
|
|
14
14
|
Setting.create_translation_table! :site_name => :string, :site_tagline => :string, :blog_name => :string, :blog_tagline => :string
|
|
15
|
-
# normally it's not a good idea to populate a table in the migration but I think this is an exception
|
|
16
|
-
Setting.create([
|
|
17
|
-
{ site_name: 'Name of the web site',
|
|
18
|
-
site_tagline: 'A short descriptive sentence',
|
|
19
|
-
enable_comments_in_pages: false,
|
|
20
|
-
disable_blog: false,
|
|
21
|
-
blog_name: 'Name of the blog',
|
|
22
|
-
blog_tagline: "A short descriptive sentence",
|
|
23
|
-
enable_comments_in_blog: true
|
|
24
|
-
}
|
|
25
|
-
])
|
|
26
15
|
end
|
|
27
|
-
|
|
16
|
+
|
|
28
17
|
def self.down
|
|
29
18
|
drop_table :settings
|
|
30
19
|
Setting.drop_translation_table!
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tkh_admin_panel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.26
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Swami Atma
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|