Skip to content

Commit e01f313

Browse files
committed
without meta=true static JRuby methods are not picked up on meta-class
1 parent 9783f81 commit e01f313

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/java/arjdbc/postgresql/PostgreSQLRubyJdbcConnection.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -554,12 +554,12 @@ private String formatInterval(final Object object) {
554554

555555
protected static boolean rawHstoreType = Boolean.getBoolean("arjdbc.postgresql.hstore.raw");
556556

557-
@JRubyMethod(name = "raw_hstore_type?")
557+
@JRubyMethod(name = "raw_hstore_type?", meta = true)
558558
public static IRubyObject useRawHstoreType(final ThreadContext context, final IRubyObject self) {
559559
return context.getRuntime().newBoolean(rawHstoreType);
560560
}
561561

562-
@JRubyMethod(name = "raw_hstore_type=")
562+
@JRubyMethod(name = "raw_hstore_type=", meta = true)
563563
public static IRubyObject setRawHstoreType(final IRubyObject self, final IRubyObject value) {
564564
if ( value instanceof RubyBoolean ) {
565565
rawHstoreType = ((RubyBoolean) value).isTrue();
@@ -579,12 +579,12 @@ public static IRubyObject setRawHstoreType(final IRubyObject self, final IRubyOb
579579
// - -1 years -2 days
580580
protected static boolean rawIntervalType = Boolean.getBoolean("arjdbc.postgresql.iterval.raw");
581581

582-
@JRubyMethod(name = "raw_interval_type?")
582+
@JRubyMethod(name = "raw_interval_type?", meta = true)
583583
public static IRubyObject useRawIntervalType(final ThreadContext context, final IRubyObject self) {
584584
return context.getRuntime().newBoolean(rawIntervalType);
585585
}
586586

587-
@JRubyMethod(name = "raw_interval_type=")
587+
@JRubyMethod(name = "raw_interval_type=", meta = true)
588588
public static IRubyObject setRawIntervalType(final IRubyObject self, final IRubyObject value) {
589589
if ( value instanceof RubyBoolean ) {
590590
rawIntervalType = ((RubyBoolean) value).isTrue();

0 commit comments

Comments
 (0)