Class: Decidim::DummyResource

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Authorable, Comments::Commentable, HasCategory, HasFeature, Reportable, Resourceable
Defined in:
lib/decidim/dev/test/rspec_support/feature.rb

Instance Method Summary collapse

Instance Method Details

#notifiable?(_context) ⇒ Boolean

Returns:

  • (Boolean)


39
40
41
# File 'lib/decidim/dev/test/rspec_support/feature.rb', line 39

def notifiable?(_context)
  true
end

#reported_content_urlObject



35
36
37
# File 'lib/decidim/dev/test/rspec_support/feature.rb', line 35

def reported_content_url
  ResourceLocatorPresenter.new(self).url
end

#users_to_notifyObject



43
44
45
# File 'lib/decidim/dev/test/rspec_support/feature.rb', line 43

def users_to_notify
  [author]
end