mirror of
https://github.com/neocities/neocities.git
synced 2025-05-28 09:50:33 +02:00
initial dashboard interface, uploading and deleting of files with validations
This commit is contained in:
parent
7dfc2407b9
commit
380a1253cc
16 changed files with 526 additions and 4 deletions
8
models/site_file.rb
Normal file
8
models/site_file.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
class SiteFile
|
||||
attr_reader :filename, :ext
|
||||
|
||||
def initialize(filename)
|
||||
@filename = filename
|
||||
@ext = File.extname(@filename).sub(/^./, '')
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue