Skip to content

Commit 4b24c1b

Browse files
committed
Update. Logic. Remove submit_time parameter.
1 parent 504dcf1 commit 4b24c1b

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ require 'cleantalk'
2222
request = Cleantalk::CheckNewuser.new({ auth_key: 'ur_api_key', sender_email: 'test@example.org' }) # Can initialize with values
2323
request.sender_ip = '127.0.0.1' # and also mutate object directly
2424
request.sender_nickname = 'test nickname'
25-
request.submit_time = 11 # you should calculate time for submitting form by youself
2625

2726
request.allowed? # => true or false
2827
request.result # => <Object Cleantalk::CheckNewuserResult> with all response data
@@ -31,7 +30,6 @@ request.result # => <Object Cleantalk::CheckNewuserResult> with all response d
3130
request = Cleantalk::CheckMessage.new({
3231
auth_key: 'ur_api_key', sender_email: 'test@example.org',
3332
sender_ip: '127.0.0.1', sender_nickname: 'test nickname',
34-
submit_time: 11
3533
}) # Can initialize with values
3634
request.message = '<p>Hello World!</p>' # and also mutate object directly
3735

@@ -48,7 +46,6 @@ request.message = 'test message' # don't use this field for registration
4846
request.sender_email = 'stop_email@example.com'
4947
request.sender_nickname = 'test nickname'
5048
request.sender_ip = '127.0.0.1'
51-
request.submit_time = 11 # you should calculate time for submitting form by youself
5249
request.sender_info = {cms_lang: 'en_US'} # here put locale for your language
5350

5451
# In case use js bot detector, add event_token from your form for check frontend data

lib/cleantalk/request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Cleantalk::Request
77
:last_error_text, :message, :example, :agent,
88
:stoplist_check, :response_lang, :sender_ip, :sender_email,
99
:sender_nickname, :sender_info, :post_info, :allow_links,
10-
:submit_time, :tz, :feedback, :phone, :event_token
10+
:tz, :feedback, :phone, :event_token
1111

1212
# Fill params with constructor
1313
def initialize(params = {})

0 commit comments

Comments
 (0)