1
1
class Settings
2
2
attr_accessor :redirect_after_submit_url , :show_typeform_branding , :progress_bar ,
3
3
:show_progress_bar , :description , :allow_indexing , :image , :language ,
4
- :is_public , :google_analytics , :notifications
4
+ :is_public , :is_trial , : google_analytics, :notifications
5
5
6
6
def initialize ( redirect_after_submit_url : nil , show_typeform_branding : nil , progress_bar : nil ,
7
7
show_progress_bar : nil , description : nil , allow_indexing : nil , image : nil , language : nil ,
8
- is_public : nil , google_analytics : nil , notifications : nil )
8
+ is_public : nil , is_trial : nil , google_analytics : nil , notifications : nil )
9
9
@redirect_after_submit_url = redirect_after_submit_url
10
10
@show_typeform_branding = show_typeform_branding
11
11
@progress_bar = progress_bar
@@ -14,6 +14,7 @@ def initialize(redirect_after_submit_url: nil, show_typeform_branding: nil, prog
14
14
@allow_indexing = allow_indexing
15
15
@language = language
16
16
@is_public = is_public
17
+ @is_trial = is_trial
17
18
@image = image
18
19
@google_analytics = google_analytics
19
20
@notifications = notifications
@@ -61,7 +62,7 @@ def same?(actual)
61
62
62
63
def self . default
63
64
Settings . new ( show_typeform_branding : true , progress_bar : 'proportion' , show_progress_bar : true ,
64
- allow_indexing : true , language : 'en' , is_public : true )
65
+ allow_indexing : true , language : 'en' , is_public : true , is_trial : false )
65
66
end
66
67
67
68
def self . full_example ( email_block_for_notifications_ref )
0 commit comments