stay_commerce 0.1.10 → 0.1.11
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5861ce1241022b986eecc6189dbb408fc598a09d8918711c0c9610f917d24a6
|
4
|
+
data.tar.gz: 061efeee0f6282c67ac3dcaf4e578f25032dcee4a173b46ccccf1073b09e7116
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 745c862563d5b73069e9e17b9f4a98a6c67bc3f3034dcf5c166ee425a79fd16fc95806d80752f212b92fa8d368bff27224b5ed8a37792f4f542fae3c94e2c1db
|
7
|
+
data.tar.gz: c508c74362a75aa3a0d2dbc5f5f01e6172dc3df0928fc10ebf8112a2565a80d2ba01ec8b1aa660890e5cb0f42ada171dc12b7e8072796cc9bff7671dddbb3215
|
@@ -10,10 +10,7 @@ module Stay
|
|
10
10
|
protect_from_forgery with: :null_session
|
11
11
|
before_action :set_active_storage_url_options
|
12
12
|
before_action :set_locale
|
13
|
-
# before_action :authenticate_devise_api_token!
|
14
|
-
# before_action :authorize_admin
|
15
13
|
helper_method :current_store
|
16
|
-
# before_action :authenticate_user!
|
17
14
|
|
18
15
|
def after_sign_in_path_for(resource)
|
19
16
|
if resource.has_stay_role?("admin")
|
@@ -34,7 +31,7 @@ module Stay
|
|
34
31
|
end
|
35
32
|
|
36
33
|
def set_active_storage_url_options
|
37
|
-
ActiveStorage::Current.url_options = { host: "localhost", port:
|
34
|
+
ActiveStorage::Current.url_options = { host: "localhost", port: 5000 } if Rails.env.development?
|
38
35
|
end
|
39
36
|
|
40
37
|
def set_locale
|
@@ -1,14 +1,12 @@
|
|
1
1
|
module Stay
|
2
2
|
class BaseApiController < ActionController::Base
|
3
3
|
before_action :set_active_storage_url_options
|
4
|
-
skip_before_action :verify_authenticity_token, raise: false
|
5
|
-
# before_action :authenticate_devise_api_token!
|
4
|
+
skip_before_action :verify_authenticity_token, raise: false
|
6
5
|
|
7
6
|
private
|
8
7
|
|
9
8
|
def set_active_storage_url_options
|
10
|
-
ActiveStorage::Current.url_options = {host:
|
11
|
-
end
|
9
|
+
ActiveStorage::Current.url_options = { host: "localhost", port: 5000 } if Rails.env.development?
|
10
|
+
end
|
12
11
|
end
|
13
12
|
end
|
14
|
-
|
data/lib/stay/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stay_commerce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- w3villa-vikaspal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|