File tree Expand file tree Collapse file tree 10 files changed +19
-19
lines changed Expand file tree Collapse file tree 10 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ xml.rss version: "2.0" do
1515 xml . channel do
1616 xml . generator "Fat Free CRM v#{ FatFreeCRM ::VERSION ::STRING } "
1717 xml . link send ( :"#{ items } _url" )
18- xml . pubDate Time . now . to_s ( :rfc822 )
18+ xml . pubDate Time . now . to_fs ( :rfc822 )
1919 xml . title title || t ( items . to_sym )
2020
2121 assets . each do |asset |
@@ -25,7 +25,7 @@ xml.rss version: "2.0" do
2525 xml . description send ( :"#{ item } _summary" , asset ) if respond_to? ( :"#{ item } _summary" )
2626 xml . guid url
2727 xml . link url
28- xml . pubDate asset . created_at . to_s ( :rfc822 )
28+ xml . pubDate asset . created_at . to_fs ( :rfc822 )
2929 xml . title !asset . is_a? ( User ) ? asset . name : "#{ asset . full_name } (#{ asset . username } )"
3030 end
3131 end
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ xml.rss version: "2.0" do
1313 xml . channel do
1414 xml . generator "Fat Free CRM v#{ FatFreeCRM ::VERSION ::STRING } "
1515 xml . link send ( :"#{ @items } _url" )
16- xml . pubDate Time . now . to_s ( :rfc822 )
16+ xml . pubDate Time . now . to_fs ( :rfc822 )
1717 xml . title title || t ( @items . to_sym )
1818
1919 @assets . each do |asset |
@@ -23,7 +23,7 @@ xml.rss version: "2.0" do
2323 xml . description send ( :"#{ item } _summary" , asset ) if respond_to? ( :"#{ item } _summary" )
2424 xml . guid url
2525 xml . link url
26- xml . pubDate asset . created_at . to_s ( :rfc822 )
26+ xml . pubDate asset . created_at . to_fs ( :rfc822 )
2727 xml . title !asset . is_a? ( User ) ? asset . name : "#{ asset . full_name } (#{ asset . username } )"
2828 end
2929 end
Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ xml.rss version: "2.0" do
66 xml . channel do
77 xml . generator "Fat Free CRM v#{ FatFreeCRM ::VERSION ::STRING } "
88 xml . link root_url
9- xml . pubDate Time . now . to_s ( :rfc822 )
9+ xml . pubDate Time . now . to_fs ( :rfc822 )
1010 xml . title t ( :activities )
1111
1212 @activities . each do |activity |
1313 xml . item do
1414 xml . author activity . user . try ( :full_name )
1515 # xml.guid activity.id
1616 # xml.link nil
17- xml . pubDate activity . created_at . to_s ( :rfc822 )
17+ xml . pubDate activity . created_at . to_fs ( :rfc822 )
1818 xml . title activity_title ( activity )
1919 end
2020 end
Original file line number Diff line number Diff line change @@ -42,6 +42,6 @@ account<%= i %>:
4242 background_info : <%= "#{FFaker::Company.catch_phrase} #{FFaker::Company.bs}" %>
4343 rating : <%= rand(5) %>
4444 category : <%= category.sample %>
45- created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_s (:db) %>
46- updated_at : <%= (created_at + rand(36_000).seconds).to_s (:db) %>
45+ created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_fs (:db) %>
46+ updated_at : <%= (created_at + rand(36_000).seconds).to_fs (:db) %>
4747<% end % >
Original file line number Diff line number Diff line change @@ -139,6 +139,6 @@ campaign<%= i %>:
139139 objectives : <%= FFaker::Lorem.sentence %>
140140 background_info :
141141# background_info : <%= FFaker::Lorem.paragraph[0,255] %>
142- created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_s (:db) %>
143- updated_at : <%= (created_at + rand(36_000).seconds).to_s (:db) %>
142+ created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_fs (:db) %>
143+ updated_at : <%= (created_at + rand(36_000).seconds).to_fs (:db) %>
144144<% end % >
Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ contact_<%= i %>:
6363 skype : <%= %[#{(first_name + last_name.first).downcase}] if rand(10) < 8 %>
6464 born_on : <%= Date.today - (rand(20) + 20).years - rand(200).days %>
6565 do_not_call : false
66- created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_s (:db) %>
67- updated_at : <%= (created_at + rand(36_000).seconds).to_s (:db) %>
66+ created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_fs (:db) %>
67+ updated_at : <%= (created_at + rand(36_000).seconds).to_fs (:db) %>
6868 background_info : <%= FFaker::Lorem.paragraph[0,255] %>
6969<% end % >
7070
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ lead<%= i %>:
6565 phone : <%= FFaker::PhoneNumber.short_phone_number if rand(10) < 5 %>
6666 mobile : <%= FFaker::PhoneNumber.short_phone_number if rand(10) < 3 %>
6767 do_not_call : false
68- created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_s (:db) %>
69- updated_at : <%= (created_at + rand(36_000).seconds).to_s (:db) %>
68+ created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_fs (:db) %>
69+ updated_at : <%= (created_at + rand(36_000).seconds).to_fs (:db) %>
7070 background_info : <%= FFaker::Lorem.paragraph[0,255] %>
7171<% end % >
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ opportunity_<%= i %>:
4242 amount : <%= (rand(8) + 1) * 100_000 %>
4343 closes_on : <%= Date.today + (rand(100) + 10).days %>
4444 background_info :
45- created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_s (:db) %>
46- updated_at : <%= (created_at + rand(36_000).seconds).to_s (:db) %>
45+ created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_fs (:db) %>
46+ updated_at : <%= (created_at + rand(36_000).seconds).to_fs (:db) %>
4747 background_info : <%= FFaker::Lorem.paragraph[0,255] %>
4848<% end % >
Original file line number Diff line number Diff line change @@ -59,6 +59,6 @@ task<%= i %>:
5959# background_info : <%= FFaker::Lorem.paragraph[0,255] %>
6060 due_at : <%= due_at %>
6161 completed_at : <%= completed_by ? Date.today - rand(5).days : "" %>
62- created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_s (:db) %>
63- updated_at : <%= (created_at + rand(36_000).seconds).to_s (:db) %>
62+ created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_fs (:db) %>
63+ updated_at : <%= (created_at + rand(36_000).seconds).to_fs (:db) %>
6464<% end % >
Original file line number Diff line number Diff line change 1010#
1111# It's strongly recommended that you check this file into your version control system.
1212
13- ActiveRecord ::Schema [ 7.0 ] . define ( version : 2023_05_26_212613 ) do
13+ ActiveRecord ::Schema [ 7.1 ] . define ( version : 2023_05_26_212613 ) do
1414 create_table "account_contacts" , force : :cascade do |t |
1515 t . integer "account_id"
1616 t . integer "contact_id"
You can’t perform that action at this time.
0 commit comments