Sha256: 35c1c1f258c60420834f79a88dfc29a8fd709c2ab0042db98437a66757c5808e

Contents?: true

Size: 209 Bytes

Versions: 1

Compression:

Stored size: 209 Bytes

Contents

module RestfulController
  module Actions
    module New
      def new
        model = self.class.model_class.build
        instance_variable_set("@#{self.class.model_name}", model)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
restful-controller-0.0.3 lib/restful_controller/actions/new.rb