ishapi 0.1.8.82 → 0.1.8.83
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: c22c41737e78d85f38ead0dc843eac965b1c11b0
|
4
|
+
data.tar.gz: 141c7e5a2e81500d4b08f6fd7876d6392e561704
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aff1b18b46bfb174b4031fb2b45c725ff486c6c3cfa0ce49dea49595fa6a5d0367bfaa6163e197284024747e8ca34ef02d2c7878c81c0aec380b017226b8d5c6
|
7
|
+
data.tar.gz: ca4d464cf29f296762848c249854b2e72c5027c2e4985850de4404aff2746608a996d6bedbccd1aaa3980e9a34291e783dd48f10977587f69159703eb705d55a
|
@@ -1,13 +1,7 @@
|
|
1
1
|
require_dependency "ishapi/application_controller"
|
2
2
|
|
3
3
|
module Ishapi
|
4
|
-
class CitiesController <
|
5
|
-
protect_from_forgery :prepend => true, :with => :exception
|
6
|
-
layout :false
|
7
|
-
|
8
|
-
check_authorization
|
9
|
-
skip_before_action :verify_authenticity_token
|
10
|
-
before_action :set_current_ability
|
4
|
+
class CitiesController < ApplicationController
|
11
5
|
|
12
6
|
def index
|
13
7
|
authorize! :index, City
|
@@ -24,14 +18,5 @@ module Ishapi
|
|
24
18
|
authorize! :show, @city
|
25
19
|
end
|
26
20
|
|
27
|
-
|
28
|
-
private
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
def set_current_ability
|
33
|
-
@current_ability ||= ::Ishapi::Ability.new( User.new )
|
34
|
-
end
|
35
|
-
|
36
21
|
end
|
37
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ishapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.8.
|
4
|
+
version: 0.1.8.83
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -199,7 +199,6 @@ files:
|
|
199
199
|
- app/controllers/ishapi/reports_controller.rb
|
200
200
|
- app/controllers/ishapi/sites_controller.rb
|
201
201
|
- app/controllers/ishapi/tags_controller.rb
|
202
|
-
- app/controllers/ishapi/unrestricted_controller.rb
|
203
202
|
- app/controllers/ishapi/user_profiles_controller.rb
|
204
203
|
- app/controllers/ishapi/users_controller.rb
|
205
204
|
- app/controllers/ishapi/venues_controller.rb
|
@@ -1,25 +0,0 @@
|
|
1
|
-
module Ishapi
|
2
|
-
class UnrestrictedController < ActionController::Base
|
3
|
-
protect_from_forgery :prepend => true, :with => :exception
|
4
|
-
layout :false
|
5
|
-
|
6
|
-
before_action :set_current_ability
|
7
|
-
|
8
|
-
check_authorization
|
9
|
-
skip_before_action :verify_authenticity_token
|
10
|
-
|
11
|
-
|
12
|
-
private
|
13
|
-
|
14
|
-
|
15
|
-
def set_current_ability
|
16
|
-
@current_ability ||= ::Ishapi::Ability.new( User.new )
|
17
|
-
end
|
18
|
-
|
19
|
-
def puts! a, b=''
|
20
|
-
puts "+++ +++ #{b}"
|
21
|
-
puts a.inspect
|
22
|
-
end
|
23
|
-
|
24
|
-
end
|
25
|
-
end
|