Class: OnboardOnRails::Step

Inherits:
ApplicationRecord show all
Defined in:
app/models/onboard_on_rails/step.rb

Constant Summary collapse

PLACEMENTS =
%w[top bottom left right center].freeze
ACTION_TYPES =
%w[next redirect custom_event].freeze

Instance Method Summary collapse

Instance Method Details

#matches_step_url?(url) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
18
19
# File 'app/models/onboard_on_rails/step.rb', line 15

def matches_step_url?(url)
  return true if url_pattern.blank?

  Concerns::UrlMatchable.pattern_matches?(url, url_pattern.to_s)
end