forked from bofh/fetsite
Merge branch 'master' of https://github.com/fetsite/fetsite
This commit is contained in:
@@ -16,7 +16,7 @@ class Document < ActiveRecord::Base
|
|||||||
"document_"+self.id.to_s
|
"document_"+self.id.to_s
|
||||||
end
|
end
|
||||||
def self.ether
|
def self.ether
|
||||||
EtherpadLite.connect('http://www.fet.at/etherpad', File.new('/home/andreas/www/APIKEY.txt'))
|
EtherpadLite.connect('http://www.fet.at/etherpad', File.new('/srv/etherpad/etherpad-lite/APIKEY.txt'))
|
||||||
end
|
end
|
||||||
def ether
|
def ether
|
||||||
if @ep.nil?
|
if @ep.nil?
|
||||||
@@ -48,7 +48,7 @@ class Document < ActiveRecord::Base
|
|||||||
self.ep_group.pad(self.etherpadkey)
|
self.ep_group.pad(self.etherpadkey)
|
||||||
end
|
end
|
||||||
def ep_group
|
def ep_group
|
||||||
t= (self.typ.nil?) ? 1 : self.typ
|
t= (self.typ.nil? || self.typ ==0) ? 1 : self.typ
|
||||||
Document.ether.group(Document::TYPS[t])
|
Document.ether.group(Document::TYPS[t])
|
||||||
end
|
end
|
||||||
searchable do
|
searchable do
|
||||||
|
|||||||
@@ -13,4 +13,4 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= @res %>
|
<% @res %>
|
||||||
|
|||||||
Reference in New Issue
Block a user