Migrated app to modular Sinatra application; copied in a lot of improvements for a Sinatra app that I learned from Stage Manager

This commit is contained in:
gballan committed 2023-03-14 20:49:42 -04:00
1 parent 2340dddd06
commit 385dd98dbe
28 files changed
+384 -275

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
class IpAddress < Sequel::Model
end
+17
View File
@@ -0,0 +1,17 @@
class Item < Sequel::Model
one_to_many :item_comments
def getLink()
return "/item/#{self.id}"
end
def type_selected?(option)
if self.type == option
return 'selected'
else
return ''
end
end
end
+5
View File
@@ -0,0 +1,5 @@
class ItemComment < Sequel::Model
many_to_one :items
end
+9
View File
@@ -0,0 +1,9 @@
class License < Sequel::Model
one_to_many :license_comments
def getLink()
return "/license/#{self.id}"
end
end
+5
View File
@@ -0,0 +1,5 @@
class LicenseComment < Sequel::Model
many_to_one :licenses
end