Sha256: f98064344dd1d6c25db51f8e28050de037edeb84d0e70b9583e710bf525e6da4

Contents?: true

Size: 308 Bytes

Versions: 22

Compression:

Stored size: 308 Bytes

Contents

module Trailblazer::Operation::Responder
  def self.included(base)
    base.extend ClassMethods
  end

  module ClassMethods
    def model_name
      model_class.model_name
    end
  end

  extend Forwardable
  def_delegators :@model, :to_param, :destroyed?, :persisted?

  def to_model
    @model
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
trailblazer-rails-2.2.0 lib/trailblazer/operation/responder.rb
trailblazer-rails-1.0.11 lib/trailblazer/operation/responder.rb
trailblazer-rails-2.1.7 lib/trailblazer/operation/responder.rb
trailblazer-rails-2.1.6 lib/trailblazer/operation/responder.rb
trailblazer-rails-1.0.10 lib/trailblazer/operation/responder.rb
trailblazer-rails-2.1.5 lib/trailblazer/operation/responder.rb
trailblazer-rails-1.0.9 lib/trailblazer/operation/responder.rb
trailblazer-rails-2.1.4 lib/trailblazer/operation/responder.rb
trailblazer-rails-2.1.2 lib/trailblazer/operation/responder.rb
trailblazer-rails-1.0.8 lib/trailblazer/operation/responder.rb
trailblazer-rails-1.0.7 lib/trailblazer/operation/responder.rb
trailblazer-rails-2.1.1 lib/trailblazer/operation/responder.rb
trailblazer-rails-2.1.0 lib/trailblazer/operation/responder.rb
trailblazer-rails-2.0.0 lib/trailblazer/operation/responder.rb
trailblazer-rails-1.0.5 lib/trailblazer/operation/responder.rb
trailblazer-rails-1.0.4 lib/trailblazer/operation/responder.rb
trailblazer-rails-1.0.3 lib/trailblazer/operation/responder.rb
trailblazer-rails-1.0.2 lib/trailblazer/operation/responder.rb
trailblazer-rails-1.0.1 lib/trailblazer/operation/responder.rb
trailblazer-rails-1.0.0 lib/trailblazer/operation/responder.rb