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

Version Path
akitaonrails-resource_controller-0.5.3 lib/resource_controller.rb
giraffesoft-resource_controller-0.4.10 lib/resource_controller.rb
giraffesoft-resource_controller-0.4.12 lib/resource_controller.rb
giraffesoft-resource_controller-0.5.1 lib/resource_controller.rb
kdmny-spree-0.0.1 vendor/plugins/resource_controller/lib/resource_controller.rb
maser-resource_controller-0.6.6 lib/resource_controller.rb
nileshtrivedi-lp_resource_builder-0.5.1 lib/resource_controller.rb
nileshtrivedi-lp_resource_builder-0.5.3 lib/resource_controller.rb
nileshtrivedi-safe_resource-0.5.3 lib/resource_controller.rb
spree-0.11.4 vendor/plugins/resource_controller/lib/resource_controller.rb
spree-0.11.3 vendor/plugins/resource_controller/lib/resource_controller.rb
spree-0.11.2 vendor/plugins/resource_controller/lib/resource_controller.rb
spree-0.11.1 vendor/plugins/resource_controller/lib/resource_controller.rb
spree-0.11.0 vendor/plugins/resource_controller/lib/resource_controller.rb
spree-0.10.2 vendor/plugins/resource_controller/lib/resource_controller.rb
spree-0.10.1 vendor/plugins/resource_controller/lib/resource_controller.rb
spree-0.10.0 vendor/plugins/resource_controller/lib/resource_controller.rb
spree-0.10.0.beta vendor/plugins/resource_controller/lib/resource_controller.rb
spree-enriquez-0.9.4 vendor/plugins/resource_controller/lib/resource_controller.rb
Pr0d1r2-resource_controller-0.6.6 lib/resource_controller.rb