Class: RedmineWithGit::Tableless::Load
- Inherits:
-
EacRailsUtils::Models::Tableless
- Object
- EacRailsUtils::Models::Tableless
- RedmineWithGit::Tableless::Load
- Defined in:
- app/models/redmine_with_git/tableless/load.rb
Instance Method Summary collapse
Instance Method Details
#path_path ⇒ Object
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 |
#save ⇒ Object
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.) false end |