OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'v05' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v05
[pettanr/pettanr.git]
/
app
/
models
/
provider.rb
diff --git
a/app/models/provider.rb
b/app/models/provider.rb
index
f06602d
..
b1069a0
100644
(file)
--- a/
app/models/provider.rb
+++ b/
app/models/provider.rb
@@
-123,4
+123,10
@@
class Provider < ActiveRecord::Base
Provider.import_urls(urls) {|name, attr| Provider.store(name, attr)}
end
+ def export_url action
+ u = self.demander_url + (self.demander_url[-1] == '/' ? '' : '/')
+ u = URI.join(u, action + '.json')
+ u.to_s
+ end
+
end