Sha256: 01793efae3e008d392e3c875160f55e4b17184ebf471edd08eaa5546a9fe978f

Contents?: true

Size: 191 Bytes

Versions: 10

Compression:

Stored size: 191 Bytes

Contents

class GroupedBlog < ActiveRecord::Base
  belongs_to :author

  scope :exclude_inactive, ->{ where(active: true) }

  def self.ransackable_scopes(auth = nil)
    [:exclude_inactive]
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
brightcontent-core-2.6.0 spec/dummy/app/models/grouped_blog.rb
brightcontent-core-2.5.1 spec/dummy/app/models/grouped_blog.rb
brightcontent-core-2.5.0 spec/dummy/app/models/grouped_blog.rb
brightcontent-core-2.4.6 spec/dummy/app/models/grouped_blog.rb
brightcontent-core-2.4.5 spec/dummy/app/models/grouped_blog.rb
brightcontent-core-2.4.4 spec/dummy/app/models/grouped_blog.rb
brightcontent-core-2.4.3 spec/dummy/app/models/grouped_blog.rb
brightcontent-core-2.4.2 spec/dummy/app/models/grouped_blog.rb
brightcontent-core-2.4.1 spec/dummy/app/models/grouped_blog.rb
brightcontent-core-2.4.0 spec/dummy/app/models/grouped_blog.rb