Class: RedmineWithGit::Tableless::Load
- Inherits:
-
EacRailsUtils::TablelessModel
- Object
- EacRailsUtils::TablelessModel
- RedmineWithGit::Tableless::Load
- Defined in:
- app/models/redmine_with_git/tableless/load.rb
Instance Method Summary collapse
Instance Method Details
#path_path ⇒ Object
17 18 19 |
# File 'app/models/redmine_with_git/tableless/load.rb', line 17 def path_path path.is_a?(Pathname) ? path.path : path.to_s end |
#save ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'app/models/redmine_with_git/tableless/load.rb', line 8 def save return false unless valid? ::RedmineWithGit::Load::All.new(path.path) true rescue StandardError => ex errors.add(:path, ex.) false end |