Sha256: c5dfadc27b045b1c1fad3fef1722f26a4a6895d91d6f5e7ce3b348fbb4e7342f
Contents?: true
Size: 796 Bytes
Versions: 2
Compression:
Stored size: 796 Bytes
Contents
module WebammToRails module Sources module Views module Devise module Invitable class Presenter def initialize(table_name:) @table_name = table_name end def collection base_path = "app/views/#{@table_name}/" templates = [ 'mailer/invitation_instructions.html.erb', 'invitations/edit.html.erb', 'invitations/new.html.erb' ] templates.map do |template| { path: base_path + template, content: File.read(File.expand_path("templates/#{template}", __dir__)) } end end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
webamm_to_rails-7.0.1 | lib/webamm_to_rails/sources/views/devise/invitable/presenter.rb |
webamm_to_rails-7.0.0 | lib/webamm_to_rails/sources/views/devise/invitable/presenter.rb |