Sha256: fbe8bcfb58711de647c606d99941d9597130c7ae6fb74baea04da63ca6148631

Contents?: true

Size: 605 Bytes

Versions: 8

Compression:

Stored size: 605 Bytes

Contents

module Puffer
  module Controller
    module Mapping

      def self.included base
        base.class_eval do
          extend ClassMethods
        end
      end

      module ClassMethods

        def index_fields
          _index_fields
        end

        def show_fields
          _show_fields.presence || _index_fields
        end

        def form_fields
          _form_fields
        end

        def create_fields
          _create_fields.presence || _form_fields
        end

        def update_fields
          _update_fields.presence || _form_fields
        end

      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
puffer-0.0.20 lib/puffer/controller/mapping.rb
puffer-0.0.19 lib/puffer/controller/mapping.rb
puffer-0.0.18 lib/puffer/controller/mapping.rb
puffer-0.0.17 lib/puffer/controller/mapping.rb
puffer-0.0.16 lib/puffer/controller/mapping.rb
puffer-0.0.15 lib/puffer/controller/mapping.rb
puffer-0.0.14 lib/puffer/controller/mapping.rb
puffer-0.0.13 lib/puffer/controller/mapping.rb