Sha256: 765062e24b89c76f18257a036d4fbf3b71ee0230217435eca6bcb8802e5a0d11
Contents?: true
Size: 877 Bytes
Versions: 1
Compression:
Stored size: 877 Bytes
Contents
module MegaBar class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. helper_method :sort_column, :sort_direction, :is_displayable before_action :app_init protect_from_forgery with: :exception before_filter :index_view_template, only: :index before_filter :show_view_template, only: :show before_filter :edit_view_template, only: :edit before_filter :new_view_template, only: :new def index_view_template @index_view_template ||= "mega_bar.html.erb" end def show_view_template @show_view_template ||= "mega_bar.html.erb" end def edit_view_template @edit_view_template ||= "mega_bar.html.erb" end def new_view_template @new_view_template ||= "mega_bar.html.erb" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mega_bar-0.0.1 | app/controllers/mega_bar/application_controller.rb |