Sha256: 596786298bd895cc2e73157b22257ac1dcd89dd8f9a01d7c40f9c2d5e7d58ace

Contents?: true

Size: 648 Bytes

Versions: 18

Compression:

Stored size: 648 Bytes

Contents

module EnjuSubject
  module Controller

    private

    def get_subject_heading_type
      if params[:subject_heading_type_id]
        @subject_heading_type = SubjectHeadingType.find(params[:subject_heading_type_id])
        authorize @subject_heading_type, :show?
      end
    end

    def get_subject
      if params[:subject_id]
        @subject = Subject.find(params[:subject_id])
        authorize @subject, :show?
      end
    end

    def get_classification
      if params[:classification_id]
        @classification = Classification.find(params[:classification_id])
        authorize @classification, :show?
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
enju_subject-0.3.4 app/controllers/concerns/enju_subject/controller.rb
enju_subject-0.3.3 app/controllers/concerns/enju_subject/controller.rb
enju_subject-0.4.0.rc.1 app/controllers/concerns/enju_subject/controller.rb
enju_subject-0.3.2 app/controllers/concerns/enju_subject/controller.rb
enju_subject-0.4.0.beta.1 app/controllers/concerns/enju_subject/controller.rb
enju_subject-0.3.1 app/controllers/concerns/enju_subject/controller.rb
enju_subject-0.3.0 app/controllers/concerns/enju_subject/controller.rb
enju_subject-0.3.0.rc.1 app/controllers/concerns/enju_subject/controller.rb
enju_subject-0.3.0.beta.1 app/controllers/concerns/enju_subject/controller.rb
enju_subject-0.2.3 app/controllers/concerns/enju_subject/controller.rb
enju_subject-0.2.2 app/controllers/concerns/enju_subject/controller.rb
enju_subject-0.2.1 app/controllers/concerns/enju_subject/controller.rb
enju_subject-0.2.0 app/controllers/concerns/enju_subject/controller.rb
enju_subject-0.2.0.beta.5 app/controllers/concerns/enju_subject/controller.rb
enju_subject-0.2.0.beta.4 app/controllers/concerns/enju_subject/controller.rb
enju_subject-0.2.0.beta.3 app/controllers/concerns/enju_subject/controller.rb
enju_subject-0.2.0.beta.2 app/controllers/concerns/enju_subject/controller.rb
enju_subject-0.2.0.beta.1 app/controllers/concerns/enju_subject/controller.rb