Sha256: 0308e70d3cf6fb5a827daf54c2e195d3fe0c82bb246155dd75d4c3900d2ba6a4

Contents?: true

Size: 1.14 KB

Versions: 63

Compression:

Stored size: 1.14 KB

Contents

module ResourceController
  # == ResourceController::Helpers
  #
  # Included in Base.
  # 
  # These helpers are used internally to manage objects, generate urls, and manage parent resource associations.
  #
  # If you want to customize certain controller behaviour, like member-object, and collection fetching, overriding these methods is all it takes.
  #
  # See the docs below, and the README for examples
  #
  # *Please Note: many of these helpers build on top of each other, and require that behaviour to be maintained, in order for other functionality to work properly.*
  # 
  # e.g. All fetching must be done on top of the method end_of_association_chain, or else parent resources (including polymorphic ones) won't function correctly.
  #   
  #   class PostsController < ResourceController::Base
  #   private
  #     def object
  #       @object ||= end_of_association_chain.find_by_permalink(param)
  #     end
  #   end
  module Helpers
    include ResourceController::Helpers::Urls
    include ResourceController::Helpers::Internal
    include ResourceController::Helpers::Nested
    include ResourceController::Helpers::CurrentObjects
  end
end

Version data entries

63 entries across 63 versions & 17 rubygems

Version Path
akitaonrails-resource_controller-0.5.2 lib/resource_controller/helpers.rb
akitaonrails-resource_controller-0.5.3 lib/resource_controller/helpers.rb
csmosx-resource_controller-0.6.6 lib/resource_controller/helpers.rb
csmosx-resource_controller-0.6.7 lib/resource_controller/helpers.rb
dkubb-resource_controller-0.6.5 lib/resource_controller/helpers.rb
giraffesoft-resource_controller-0.4.10 lib/resource_controller/helpers.rb
giraffesoft-resource_controller-0.4.12 lib/resource_controller/helpers.rb
giraffesoft-resource_controller-0.4.9 lib/resource_controller/helpers.rb
giraffesoft-resource_controller-0.5.1 lib/resource_controller/helpers.rb
giraffesoft-resource_controller-0.5.2 lib/resource_controller/helpers.rb
giraffesoft-resource_controller-0.5.5 lib/resource_controller/helpers.rb
giraffesoft-resource_controller-0.5.6 lib/resource_controller/helpers.rb
giraffesoft-resource_controller-0.6.0 lib/resource_controller/helpers.rb
giraffesoft-resource_controller-0.6.1 lib/resource_controller/helpers.rb
giraffesoft-resource_controller-0.6.5 lib/resource_controller/helpers.rb
jeffrafter-resource_controller-0.5.5 lib/resource_controller/helpers.rb
kdmny-spree-0.0.1 vendor/plugins/resource_controller/lib/resource_controller/helpers.rb
maser-resource_controller-0.6.6 lib/resource_controller/helpers.rb
nileshtrivedi-lp_resource_builder-0.5.1 lib/resource_controller/helpers.rb
nileshtrivedi-lp_resource_builder-0.5.3 lib/resource_controller/helpers.rb