Sha256: 289735539ececd7b3ee57a05d1c02177f0fa9a93e9b3fd50c737905122a91225

Contents?: true

Size: 332 Bytes

Versions: 35

Compression:

Stored size: 332 Bytes

Contents

module Brightcontent
  module DefaultActions
    def show
      redirect_to action: :edit
    end

    def create
      create! { polymorphic_url(resource_class) }
    end

    def update
      update! { polymorphic_url(resource_class) }
    end

    def destroy
      destroy! { polymorphic_url(resource_class) }
    end
  end
end

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
brightcontent-core-2.0.30 lib/brightcontent/default_actions.rb
brightcontent-core-2.0.29 lib/brightcontent/default_actions.rb
brightcontent-core-2.0.28 lib/brightcontent/default_actions.rb
brightcontent-core-2.0.27 lib/brightcontent/default_actions.rb
brightcontent-core-2.0.26 lib/brightcontent/default_actions.rb
brightcontent-core-2.0.25 lib/brightcontent/default_actions.rb
brightcontent-core-2.0.24 lib/brightcontent/default_actions.rb
brightcontent-core-2.0.23 lib/brightcontent/default_actions.rb
brightcontent-core-2.0.22 lib/brightcontent/default_actions.rb
brightcontent-core-2.0.21 lib/brightcontent/default_actions.rb
brightcontent-core-2.0.20 lib/brightcontent/default_actions.rb
brightcontent-core-2.0.19 lib/brightcontent/default_actions.rb
brightcontent-core-2.0.18 lib/brightcontent/default_actions.rb
brightcontent-core-2.0.17 lib/brightcontent/default_actions.rb
brightcontent-core-2.0.16 lib/brightcontent/default_actions.rb
brightcontent-core-2.0.15 lib/brightcontent/default_actions.rb
brightcontent-core-2.0.14 lib/brightcontent/default_actions.rb
brightcontent-core-2.0.13 lib/brightcontent/default_actions.rb
brightcontent-core-2.0.12 lib/brightcontent/default_actions.rb
brightcontent-core-2.0.11 lib/brightcontent/default_actions.rb