Skip to content

Commit

Permalink
Corrects wrong function call
Browse files Browse the repository at this point in the history
  • Loading branch information
yokolet committed Mar 10, 2014
1 parent 724f600 commit 53607ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/diametric/DiametricEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public IRubyObject to_java(ThreadContext context) {
@JRubyMethod
public IRubyObject db(ThreadContext context) {
try {
Object database = DiametricService.getFn("datomic.api", "db").invoke(entity);
Object database = DiametricService.getFn("datomic.api", "entity-db").invoke(entity);
RubyClass clazz = (RubyClass)context.getRuntime().getClassFromPath("Diametric::Persistence::Database");
DiametricDatabase diametric_database = (DiametricDatabase)clazz.allocate();
diametric_database.init(database);
Expand Down
Binary file modified lib/diametric_service.jar
Binary file not shown.

0 comments on commit 53607ff

Please sign in to comment.