lib/mobility/backends/sequel/table/query_methods.rb in mobility-0.4.1 vs lib/mobility/backends/sequel/table/query_methods.rb in mobility-0.4.2

- old
+ new

@@ -7,15 +7,9 @@ super translation_class = model_class.const_get(subclass_name) define_join_method(association_name, translation_class, **options) define_query_methods(association_name, translation_class, **options) - - attributes.each do |attribute| - define_method :"first_by_#{attribute}" do |value| - where(attribute => value).select_all(model.table_name).first - end - end end def define_join_method(association_name, translation_class, table_name: nil, foreign_key: nil, **) define_method :"join_#{association_name}" do |**options| if joins = @opts[:join]