Sha256: 1ea5d8fbbb71e77f42d5b0d51f47ea63d7393d546ad4f53ac33bda9910290fe3

Contents?: true

Size: 523 Bytes

Versions: 5

Compression:

Stored size: 523 Bytes

Contents

module Ki
  module ModelHelpers
    def params
      @req.params
    end

    def get?
      @req.get?
    end

    def post?
      @req.post?
    end

    def put?
      @req.put?
    end

    def delete?
      @req.delete?
    end

    def forbidden_actions
      []
    end

    def responds_to_formats
      [:json, :html]
    end

    def required_attributes
      []
    end

    def skipped_params
      []
    end

    def unique_attributes
      []
    end

    def selected_layout
      :layout
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ki-0.3.3 lib/modules/model_helpers.rb
ki-0.3.2 lib/modules/model_helpers.rb
ki-0.3.1 lib/modules/model_helpers.rb
ki-0.3.0 lib/modules/model_helpers.rb
ki-0.2.5 lib/modules/model_helpers.rb