Skip to content

TableSync doesn't work if hook was used in model #75

Description

@eugeneyak

TableSync defines hooks directly in model without including or prepending code and if you define similar hooks, tablesync's hooks are shadowed and don't work

class Test < Sequel::Model
  TableSync.sync(self)

  def after_create
    super
    p "AFTER CREATE"
  end
end

Test.create

You will see "AFTER CREATE" in console but data won't be synced

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions