This repository was archived by the owner on Jun 29, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
lib/create_api_gem/forms/settings Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,12 @@ def same?(actual)
52
52
( google_analytics . nil? || google_analytics == actual . google_analytics ) &&
53
53
( notifications . nil? || notifications . same? ( actual . notifications ) ) &&
54
54
( description . nil? || description == actual . description ) &&
55
+ ( image . nil? || image [ :href ] . start_with? ( "#{ APIConfig . image_api_request_url } /images/" ) && actual . image [ :href ] . start_with? ( "#{ APIConfig . image_api_request_url } /images/" ) ) &&
55
56
( show_typeform_branding . nil? ? Settings . default . show_typeform_branding : show_typeform_branding ) == actual . show_typeform_branding &&
56
57
( progress_bar . nil? ? Settings . default . progress_bar : progress_bar ) == actual . progress_bar &&
57
58
( language . nil? ? Settings . default . language : language ) == actual . language &&
58
59
( is_public . nil? ? Settings . default . is_public : is_public ) == actual . is_public &&
59
- ( allow_indexing . nil? ? Settings . default . allow_indexing : allow_indexing ) == actual . allow_indexing &&
60
- same_image? ( actual . image )
61
- end
62
-
63
- def same_image? ( actual )
64
- ( image . nil? || image [ :href ] . start_with? ( "#{ APIConfig . image_api_request_url } /images/" ) && actual . image [ :href ] . start_with? ( "#{ APIConfig . image_api_request_url } /images/" ) )
60
+ ( allow_indexing . nil? ? Settings . default . allow_indexing : allow_indexing ) == actual . allow_indexing
65
61
end
66
62
67
63
def self . default
You can’t perform that action at this time.
0 commit comments