Sha256: 159d8571823b901eb83f7f737f227483581f1f6e2a27e7e33b084b62bbb28b17
Contents?: true
Size: 683 Bytes
Versions: 40
Compression:
Stored size: 683 Bytes
Contents
module ResourceController ACTIONS = [:index, :show, :new_action, :create, :edit, :update, :destroy].freeze SINGLETON_ACTIONS = (ACTIONS - [:index]).freeze FAILABLE_ACTIONS = ACTIONS - [:index, :new_action, :edit].freeze NAME_ACCESSORS = [:model_name, :route_name, :object_name] module ActionControllerExtension unloadable def resource_controller(*args) include ResourceController::Controller if args.include?(:singleton) include ResourceController::Helpers::SingletonCustomizations end end end end require File.dirname(__FILE__)+'/../rails/init.rb' unless ActionController::Base.include?(Urligence)
Version data entries
40 entries across 40 versions & 10 rubygems