Skip to content
View Odaeus's full-sized avatar

Sponsoring

@utmapp

Organizations

@cyclestreets

Block or report Odaeus

Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Odaeus/README.md

Hi there 👋

Pinned Loading

  1. Simple Presenter Pattern Simple Presenter Pattern
    1
    class ApplicationController < ActionController::Base
    2
      # ...
    3
      
    4
      concerning :Presenters do
    5
        included do
  2. Alternative to Rails' sharing of ins... Alternative to Rails' sharing of instance variables between controller and views.
    1
    class ApplicationController < ActionController::Base
    2
      # Creates an accessor which is exposed to the view
    3
      def self.view_accessor(*names)
    4
        attr_accessor *names
    5
        helper_method *names