Class: RedmineWithGit::Tableless::Load

Inherits:
EacRailsUtils::Models::Tableless
  • Object
show all
Defined in:
app/models/redmine_with_git/tableless/load.rb

Instance Method Summary collapse

Instance Method Details

#path_pathObject



20
21
22
# File 'app/models/redmine_with_git/tableless/load.rb', line 20

def path_path
  path.is_a?(Pathname) ? path.path : path.to_s
end

#saveObject



10
11
12
13
14
15
16
17
18
# File 'app/models/redmine_with_git/tableless/load.rb', line 10

def save
  return false unless valid?

  ::RedmineWithGit::Load::All.new(path.path)
  true
rescue StandardError => e
  errors.add(:path, e.message)
  false
end