Skip to content
Snippets Groups Projects
Commit 3bbd0177 authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

re-indent management layout and orient db highlight repo

parent 05a198b4
No related branches found
No related tags found
No related merge requests found
......@@ -2,18 +2,16 @@ module OrientDb
class HighlightRepository < Base
def find_all
connection.query "SELECT FROM Highlight"
connection.query "SELECT * FROM Highlight"
end
def insert_data (name,url)
connection.command "INSERT INTO Highlight (name,URL) VALUES ('#{name}','#{url}')"
def insert_data (name, url)
connection.command "INSERT INTO Highlight (name,URL) VALUES ('#{name}','#{url}')"
end
def destroy_data(id)
return @connection.command "DELETE VERTEX Highlight where @rid = '#{id}'"
rescue
return nil
@connection.command "DELETE VERTEX Highlight where @rid = '#{id}'"
end
end
......
......@@ -65,4 +65,4 @@
</nav>
</aside>
</body>
</html>
</html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment