Sha256: 071da207acbc29ec584b0ff1caca175500075b441880b7b7af16447c90a6666c

Contents?: true

Size: 413 Bytes

Versions: 37

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

module ActionText
  class FixtureSet
    def self.attachment(fixture_set_name, label, column_type: :integer)
      signed_global_id = ActiveRecord::FixtureSet.signed_global_id fixture_set_name, label,
        column_type: column_type, for: ActionText::Attachable::LOCATOR_NAME

      %(<action-text-attachment sgid="#{signed_global_id}"></action-text-attachment>)
    end
  end
end

Version data entries

37 entries across 37 versions & 4 rubygems

Version Path
actiontext-6.1.7.10 lib/action_text/fixture_set.rb
actiontext-6.1.7.9 lib/action_text/fixture_set.rb
actiontext-6.1.7.8 lib/action_text/fixture_set.rb
actiontext-6.1.7.7 lib/action_text/fixture_set.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actiontext-6.1.6.1/lib/action_text/fixture_set.rb
actiontext-6.1.7.6 lib/action_text/fixture_set.rb
actiontext-6.1.7.5 lib/action_text/fixture_set.rb
actiontext-6.1.7.4 lib/action_text/fixture_set.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actiontext-6.1.6.1/lib/action_text/fixture_set.rb
actiontext-6.1.7.3 lib/action_text/fixture_set.rb
actiontext-6.1.7.2 lib/action_text/fixture_set.rb
actiontext-6.1.7.1 lib/action_text/fixture_set.rb
actiontext-6.1.7 lib/action_text/fixture_set.rb
actiontext-6.1.6.1 lib/action_text/fixture_set.rb
actiontext-6.1.6 lib/action_text/fixture_set.rb
actiontext-6.1.5.1 lib/action_text/fixture_set.rb
actiontext-6.1.5 lib/action_text/fixture_set.rb
actiontext-6.1.4.7 lib/action_text/fixture_set.rb
actiontext-6.1.4.6 lib/action_text/fixture_set.rb
actiontext-6.1.4.5 lib/action_text/fixture_set.rb