sunrise-posts 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,7 @@
|
|
1
1
|
class Manage::PostsController < Manage::BaseController
|
2
2
|
inherit_resources
|
3
|
-
defaults :route_prefix => 'manage'
|
4
3
|
actions :all, :except => [:show]
|
5
|
-
belongs_to :structure
|
4
|
+
belongs_to :structure, :finder => :find_by_permalink!
|
6
5
|
|
7
6
|
load_and_authorize_resource :post, :through => :structure
|
8
7
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sunrise-posts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Igor Galeta
|