Sha256: da7fca90a7735f66cf73348384ed04e4e74ffd2230f5cb39b814e077df3edfae

Contents?: true

Size: 212 Bytes

Versions: 3

Compression:

Stored size: 212 Bytes

Contents

module Formol
  module Controllers
    module Nested
      module HasParentCategory
        def category
          @category ||= Formol::Category.find(params[:category_id])
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
formol-0.0.6 lib/formol/controllers/nested/has_parent_category.rb
formol-0.0.5 lib/formol/controllers/nested/has_parent_category.rb
formol-0.0.4 lib/formol/controllers/nested/has_parent_category.rb