lib/rails_band/action_view/from_views.rb
# frozen_string_literal: true module RailsBand module ActionView # FromViews provides a sole method #from_views to delete the prefix of 'app/views/' from the passed string. module FromViews private def from_views(string) string.delete_prefix(views_prefix) end def views_prefix @views_prefix ||= Rails.root.join('app/views/').to_path end end end end
Source Files
- lib/rails_band.rb
- lib/rails_band/action_cable/event/broadcast.rb
- lib/rails_band/action_cable/event/perform_action.rb
- lib/rails_band/action_cable/event/transmit.rb
- lib/rails_band/action_cable/event/transmit_subscription_confirmation.rb
- lib/rails_band/action_cable/event/transmit_subscription_rejection.rb
- lib/rails_band/action_cable/log_subscriber.rb
- lib/rails_band/action_controller/event/exist_fragment.rb
- lib/rails_band/action_controller/event/expire_fragment.rb
- lib/rails_band/action_controller/event/halted_callback.rb
- lib/rails_band/action_controller/event/process_action.rb
- lib/rails_band/action_controller/event/read_fragment.rb
- lib/rails_band/action_controller/event/redirect_to.rb
- lib/rails_band/action_controller/event/send_data.rb
- lib/rails_band/action_controller/event/send_file.rb
- lib/rails_band/action_controller/event/send_stream.rb
- lib/rails_band/action_controller/event/start_processing.rb
- lib/rails_band/action_controller/event/unpermitted_parameters.rb
- lib/rails_band/action_controller/event/write_fragment.rb
- lib/rails_band/action_controller/log_subscriber.rb
- lib/rails_band/action_dispatch/event/process_middleware.rb
- lib/rails_band/action_dispatch/event/redirect.rb
- lib/rails_band/action_dispatch/event/request.rb
- lib/rails_band/action_dispatch/log_subscriber.rb
- lib/rails_band/action_mailbox/event/process.rb
- lib/rails_band/action_mailbox/log_subscriber.rb
- lib/rails_band/action_mailer/event/deliver.rb
- lib/rails_band/action_mailer/event/process.rb
- lib/rails_band/action_mailer/log_subscriber.rb
- lib/rails_band/action_view/event/render_collection.rb
- lib/rails_band/action_view/event/render_layout.rb
- lib/rails_band/action_view/event/render_partial.rb
- lib/rails_band/action_view/event/render_template.rb
- lib/rails_band/action_view/from_views.rb
- lib/rails_band/action_view/log_subscriber.rb
- lib/rails_band/active_job/event/discard.rb
- lib/rails_band/active_job/event/enqueue.rb
- lib/rails_band/active_job/event/enqueue_all.rb
- lib/rails_band/active_job/event/enqueue_at.rb
- lib/rails_band/active_job/event/enqueue_retry.rb
- lib/rails_band/active_job/event/perform.rb
- lib/rails_band/active_job/event/perform_start.rb
- lib/rails_band/active_job/event/retry_stopped.rb
- lib/rails_band/active_job/log_subscriber.rb
- lib/rails_band/active_record/event/instantiation.rb
- lib/rails_band/active_record/event/sql.rb
- lib/rails_band/active_record/event/strict_loading_violation.rb
- lib/rails_band/active_record/log_subscriber.rb
- lib/rails_band/active_storage/event/analyze.rb
- lib/rails_band/active_storage/event/preview.rb
- lib/rails_band/active_storage/event/service_delete.rb
- lib/rails_band/active_storage/event/service_delete_prefixed.rb
- lib/rails_band/active_storage/event/service_download.rb
- lib/rails_band/active_storage/event/service_download_chunk.rb
- lib/rails_band/active_storage/event/service_exist.rb
- lib/rails_band/active_storage/event/service_streaming_download.rb
- lib/rails_band/active_storage/event/service_update_metadata.rb
- lib/rails_band/active_storage/event/service_upload.rb
- lib/rails_band/active_storage/event/service_url.rb
- lib/rails_band/active_storage/event/transform.rb
- lib/rails_band/active_storage/log_subscriber.rb
- lib/rails_band/active_support/event/cache_cleanup.rb
- lib/rails_band/active_support/event/cache_decrement.rb
- lib/rails_band/active_support/event/cache_delete.rb
- lib/rails_band/active_support/event/cache_delete_matched.rb
- lib/rails_band/active_support/event/cache_delete_multi.rb
- lib/rails_band/active_support/event/cache_exist.rb
- lib/rails_band/active_support/event/cache_fetch_hit.rb
- lib/rails_band/active_support/event/cache_generate.rb
- lib/rails_band/active_support/event/cache_increment.rb
- lib/rails_band/active_support/event/cache_prune.rb
- lib/rails_band/active_support/event/cache_read.rb
- lib/rails_band/active_support/event/cache_read_multi.rb
- lib/rails_band/active_support/event/cache_write.rb
- lib/rails_band/active_support/event/cache_write_multi.rb
- lib/rails_band/active_support/event/message_serializer_fallback.rb
- lib/rails_band/active_support/log_subscriber.rb
- lib/rails_band/base_event.rb
- lib/rails_band/configuration.rb
- lib/rails_band/deprecation_subscriber.rb
- lib/rails_band/railtie.rb
- lib/rails_band/version.rb