Sha256: 87aa2cdf399f6fadf1b76320e00196346831064d2edfcbbc78ecb66373f3b7ba

Contents?: true

Size: 199 Bytes

Versions: 3

Compression:

Stored size: 199 Bytes

Contents

module RestfulController
  module Actions
    module Index
      def index
        instance_variable_set("@#{self.class.model_name.pluralize}", self.class.model_class.all)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
restful-controller-0.0.3 lib/restful_controller/actions/index.rb
restful-controller-0.0.2 lib/restful_controller/actions/index.rb
restful-controller-0.0.1 lib/restful_controller/actions/index.rb