ordinary_cms 0.1.2 → 0.2.1
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: 6147aefcc03052efd7d81cbeec60cce328e33fe2
|
4
|
+
data.tar.gz: 6e1603255fadaf7beb11e378ef9ca9fbaad19782
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c71c8e4076e2240351a0b1e2a9cd23754dde1284e3620fe9a7b4e5a8362bb310f6253f5d72f46fc006869928e6723eedecc2ffc5b1c311bd0240b5fcb73e300
|
7
|
+
data.tar.gz: 1efad14dd7592dc8ef4c9c901e26b89aaac22751a09f1b959dde60ca59eaa3f8004194632562763552ef61ca1a320f701bf32b0cf20feafa4585b79538d761a5
|
@@ -1,12 +1,14 @@
|
|
1
1
|
require_dependency "ordinary_cms/application_controller"
|
2
|
-
|
2
|
+
require_dependency 'ordinary_cms/concerns/smart_pages_render'
|
3
3
|
module OrdinaryCms
|
4
4
|
class PagesController < ApplicationController
|
5
|
+
include SmartPagesRender
|
6
|
+
|
5
7
|
before_action :set_page, only: [:show, :update]
|
6
8
|
before_action ActiveAdmin.application.authentication_method, only: :update
|
7
9
|
|
8
10
|
def show
|
9
|
-
|
11
|
+
smart_render(@page.name)
|
10
12
|
end
|
11
13
|
|
12
14
|
def update
|
@@ -1,8 +1,12 @@
|
|
1
|
+
require_dependency "ordinary_cms/application_controller"
|
2
|
+
require_dependency 'ordinary_cms/concerns/smart_pages_render'
|
3
|
+
|
1
4
|
module OrdinaryCms
|
2
5
|
class RootController < ApplicationController
|
6
|
+
include SmartPagesRender
|
3
7
|
def show
|
4
8
|
@page = Page.find_by root: true
|
5
|
-
|
9
|
+
smart_render 'root'
|
6
10
|
end
|
7
11
|
end
|
8
12
|
end
|
data/lib/ordinary_cms/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ordinary_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- max-konin
|
@@ -95,6 +95,7 @@ files:
|
|
95
95
|
- app/assets/javascripts/ordinary_cms/application.js
|
96
96
|
- app/assets/stylesheets/ordinary_cms/application.css
|
97
97
|
- app/controllers/ordinary_cms/application_controller.rb
|
98
|
+
- app/controllers/ordinary_cms/concerns/smart_pages_render.rb
|
98
99
|
- app/controllers/ordinary_cms/pages_controller.rb
|
99
100
|
- app/controllers/ordinary_cms/root_controller.rb
|
100
101
|
- app/helpers/ordinary_cms/application_helper.rb
|