code stringlengths 1 1.73M | language stringclasses 1
value |
|---|---|
class Entry < ActiveRecord::Base
belongs_to :section
# Create a new entry and fill in all the required fields automatically.
# This is required if the section is going to be saved before the
# user has added any data.
#
# Requires a section.
def self.new_empty(section)
e = Entry.new
e.section = ... | Ruby |
#
# Bulletin Layout
#
# A caching object that stores a copy of the Bulletin at the moment it is sent.
#
# This table is losely joined with the template layout through the name, but by its
# nature, is not directly linked through ids.
#
# The idea with this class is to maintain a store of bulletins that have been se... | Ruby |
class ProjectGroup < ActiveRecord::Base
has_many :projects, :dependent => :destroy
has_many :recipients, :dependent => :delete_all
# Do not allow the default to be deleted!
def destroy
if (self.id == 1 or self.name == 'Default')
return false
end
super()
end
end
| Ruby |
class Templet < ActiveRecord::Base
belongs_to :project
has_many :bulletins
has_many :templet_layouts, :dependent => :destroy do
# Override the normal find by name so that if the requested
# layout is not found, the default is provided
def find_by_name( name )
name = 'main' if (name.blan... | Ruby |
#
# Extends the templet to provide templates for content pages
#
#
#
class ContentTemplet < Templet
attr_accessor :bulletin
attr_accessor :content_page
def render( bulletin, content_page, layout )
layout = templet_layouts.find_by_name( layout )
self.bulletin = bulletin
self.content_page = content_... | Ruby |
class Recipient < ActiveRecord::Base
belongs_to :project_group
has_many :recipient_receipts, :dependent => :delete_all
has_many :subscriptions, :dependent => :delete_all
has_many :projects, :through => :subscriptions
attr_protected :id
validates_associated :project_group
validates_uniqueness... | Ruby |
class ForwardController < ApplicationController
layout 'project'
skip_before_filter :login_required
before_filter :prepare_project_header_and_footer
# Provide a form to allow the page to be fowarded
# If posted data, the data will be used to send an email
# which contains a link to the page.
def p... | Ruby |
require 'fileutils'
require 'tmpdir'
class FckeditorController < ApplicationController
MIME_TYPES = [
"image/jpg",
"image/jpeg",
"image/pjpeg",
"image/gif",
"image/png",
"application/x-shockwave-flash"
]
RXML = <<-EOL
xml.instruct!
#=> <?xml version="1.0" encoding="utf-8" ?>
x... | Ruby |
class BulletinsController < ApplicationController
layout 'project'
before_filter :prepare_project_header_and_footer
skip_before_filter :login_required
skip_before_filter :configure_charsets
before_filter :configure_charsets, :except=>['show']
# GETs should be safe (see http://www.w3.org/2001/tag/doc/w... | Ruby |
class ProjectsController < ApplicationController
layout 'project'
skip_before_filter :login_required
before_filter :prepare_project_header_and_footer
def show
render :text => @project.templets.find_by_name('PAGE_PROJECT').render( @project ), :layout => true
end
def list
end
end
| Ruby |
class Admin::FilesController < ApplicationController
layout 'admin'
verify :method => :post, :only => [ :add, :resize, :delete ],
:redirect_to => { :action => :list }
before_filter :skip_admin_flash
before_filter :except => [ :list ] do | c |
c.check_role(:edit_files, :back)
end
def inde... | Ruby |
class Admin::ProjectGroupsController < ApplicationController
layout 'admin'
skip_before_filter :require_project
before_filter :require_admin
def index
list
render :action => 'list'
end
# GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
verify :method => :post, :only... | Ruby |
class Admin::BulletinsController < ApplicationController
layout 'admin'
def index
list
render :action => 'list'
end
before_filter(:except => [ :list, :show, :preview ]) do | c |
c.check_role(:edit_bulletin, :back)
end
before_filter(:only => [ :copy, :new, :create, :destroy ]) do |c|
c.... | Ruby |
class Admin::ProjectsController < ApplicationController
layout 'admin'
skip_before_filter :require_project
before_filter :require_project, :only => [ :show, :edit ]
before_filter(:except => [:list, :show]) do | c |
c.check_role(:edit_project, :controller=>'/admin/projects', :action => 'list', :project_nam... | Ruby |
class Admin::UserController < ApplicationController
layout 'admin'
# override default login
skip_before_filter :login_required
before_filter :login_required, :only=>['change_password', 'hidden', 'list']
skip_before_filter :require_project
before_filter :require_project, :only=>['change_password', 'list']
... | Ruby |
class Admin::TempletLayoutsController < ApplicationController
layout 'admin'
skip_before_filter :require_project
before_filter :load_project
before_filter(:except => [ :list ]) do | c |
c.check_role(:edit_templates, :back)
end
before_filter :require_admin_or_project
# GETs should be safe (see http:/... | Ruby |
class Admin::TempletsController < ApplicationController
layout 'admin'
skip_before_filter :require_project
before_filter :load_project
before_filter :require_admin_or_project
before_filter(:except => [ :list, :show ]) do | c |
c.check_role(:edit_templates, :back)
end
def index
list
render :... | Ruby |
class Admin::UserRolesController < ApplicationController
layout 'admin'
before_filter(:except => [:list]) do | c |
c.check_role(:edit_project, :controller=>'projects', :action => 'list')
end
def index
list
render :action => 'list'
end
# GETs should be safe (see http://www.w3.org/2001/tag/do... | Ruby |
class Admin::EntriesController < ApplicationController
layout 'admin'
before_filter(:except => [ :list, :show ]) do | c |
c.check_role(:edit_entry, :back)
end
def index
list
render :action => 'list'
end
# GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
verify :met... | Ruby |
class Admin::SectionsController < ApplicationController
layout 'admin'
before_filter(:except => [ :list, :show ]) do | c |
c.check_role(:edit_section, :back)
end
def index
list
render :action => 'list'
end
# GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
verify :... | Ruby |
class Admin::SubscriptionsController < ApplicationController
layout 'admin'
skip_before_filter :require_project
before_filter :load_project
before_filter :require_admin_or_project
before_filter() do | c |
c.check_role(:edit_recipients, :back)
end
# GETs should be safe (see http://www.w3.org/2001/ta... | Ruby |
class Admin::RecipientsController < ApplicationController
layout 'admin'
skip_before_filter :require_project
before_filter :require_admin
# GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
verify :method => :post, :only => [ :destroy, :create, :update ],
:redirect_to => { :a... | Ruby |
class Admin::TagsController < ApplicationController
layout 'admin'
skip_before_filter :require_project
before_filter :require_admin
def index
list
render :action => 'list'
end
# GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
verify :method => :post, :only => [ :d... | Ruby |
class Admin::UsersController < ApplicationController
layout 'admin'
skip_before_filter :require_project
before_filter :require_admin
def index
list
render :action => 'list'
end
# GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
verify :method => :post, :only => [ :des... | Ruby |
class Admin::ContentPagesController < ApplicationController
layout 'admin'
before_filter :require_bulletin, :only => ['list', 'new']
before_filter :except => [ :list, :show ] do | c |
c.check_role(:edit_pages, :back)
end
def index
list
render :action => 'list'
end
# GETs should be s... | Ruby |
require "base64"
class StatsController < ApplicationController
# no need for sessions here!
session :off
skip_before_filter :login_required
skip_before_filter :configure_charsets
skip_before_filter :require_project
# Add an entry to the statistics counter and
# provide the calling function with ... | Ruby |
# Filters added to this controller will be run for all controllers in the application.
# Likewise, all the methods added will be available for all controllers.
class ApplicationController < ActionController::Base
# do a permissions check for everything
before_filter :configure_language
before_filter :login_requi... | Ruby |
class RecipientsController < ApplicationController
layout 'project'
skip_before_filter :login_required
before_filter :prepare_project_header_and_footer
def index
subscribe
end
#
# Allow the user to subscribe to the current project.
# They will be sent an email confirmation.
#
def subscribe... | Ruby |
class ContentController < ApplicationController
skip_before_filter :login_required
def page
# show the requested page
@bulletin = @project.bulletins.find_by_title(params[:bulletin_title])
if @bulletin
@content_page = @bulletin.content_pages.find_by_name(params[:page_name])
if (@... | Ruby |
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'tasks/rails'
require 'get... | Ruby |
#!/usr/bin/env ruby
#
# Send Bulletin! - Samuel Lown 2006-06-30
#
# Load up the required data from the database and send an email
# from for the bulltin id specified.
#
require 'optparse'
require File.dirname(__FILE__) + '/../config/boot'
options = { :environment => (ENV['RAILS_ENV'] || "production").dup }
ENV["RAILS... | Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/breakpointer' | Ruby |
#!/usr/bin/env ruby
#
# Import the provided CSV file and store Recipient objects
#
# Copyright (c) 2007 - Samuel Lown <me@samlown.com>
#
#
#
require 'optparse'
require File.dirname(__FILE__) + '/../config/boot'
options = { :environment => (ENV['RAILS_ENV'] || "development").dup }
ENV["RAILS_ENV"] = options[:environment... | Ruby |
#!/usr/bin/env ruby
#
# Add Addresses - Samuel Lown 2006-06-30
#
# Add addresses to the database from a CSV file or something similar.
#
# It is assumed that this file will be edited before execution depending on the
# situation with the source data.
#
require 'optparse'
require File.dirname(__FILE__) + '/../config/... | Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/console' | Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/runner' | Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/performance/benchmarker'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/performance/benchmarker'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/performance/profiler'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/performance/profiler'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/plugin' | Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/destroy' | Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/about' | Ruby |
#!/usr/bin/env ruby
#
# Send Bulletin! - Samuel Lown 2006-06-30
#
# Load up the required data from the database and send an email
# from for the bulltin id specified.
#
require 'optparse'
require File.dirname(__FILE__) + '/../config/boot'
options = { :environment => (ENV['RAILS_ENV'] || "production").dup }
ENV["RAILS... | Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/runner' | Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/breakpointer' | Ruby |
#!/usr/bin/env ruby
#
# Add Addresses - Samuel Lown 2006-06-30
#
# Add addresses to the database from a CSV file or something similar.
#
# It is assumed that this file will be edited before execution depending on the
# situation with the source data.
#
require 'optparse'
require File.dirname(__FILE__) + '/../config/... | Ruby |
#!/usr/bin/env ruby
#
# Add Addresses - Samuel Lown 2006-06-30
#
# Add addresses to the database
#
require 'optparse'
require File.dirname(__FILE__) + '/../config/boot'
options = { :environment => (ENV['RAILS_ENV'] || "development").dup }
ENV["RAILS_ENV"] = options[:environment]
RAILS_ENV.replace(options[:environmen... | Ruby |
#!/usr/bin/env ruby
#
# Import the provided CSV file and store Recipient objects
#
# Copyright (c) 2007 - Samuel Lown <me@samlown.com>
#
#
#
require 'optparse'
require File.dirname(__FILE__) + '/../config/boot'
options = { :environment => (ENV['RAILS_ENV'] || "development").dup }
ENV["RAILS_ENV"] = options[:environment... | Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/server' | Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/generate' | Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/console' | Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/process/reaper'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/process/spawner'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/process/reaper'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/process/spawner'
| Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/destroy' | Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/generate' | Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/server' | Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/about' | Ruby |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/plugin' | Ruby |
#!/usr/bin/env ruby
#
# Add Addresses - Samuel Lown 2006-06-30
#
# Add addresses to the database
#
require 'optparse'
require File.dirname(__FILE__) + '/../config/boot'
options = { :environment => (ENV['RAILS_ENV'] || "development").dup }
ENV["RAILS_ENV"] = options[:environment]
RAILS_ENV.replace(options[:environmen... | Ruby |
class CreateAllTemplets < ActiveRecord::Migration
def self.up
create_table "templet_layouts" do |t|
t.column "templet_id", :integer, :default => 0, :null => false
t.column "name", :string, :limit => 30, :default => "", :null => false
t.column "... | Ruby |
class CreateBulletins < ActiveRecord::Migration
def self.up
create_table "bulletins" do |t|
t.column "project_id", :integer, :default => 0, :null => false
t.column "templet_id", :integer, :default => 0, :null => false
t.column "title", :string, ... | Ruby |
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |t|
t.column :name, :string
t.column :password_hash, :string
t.column :description, :text
t.column :admin_role, :boolean, :default => 0
t.column :date_created, :datetime
t.column :date_update, ... | Ruby |
class ModifyButtinsDates < ActiveRecord::Migration
def self.up
add_column :bulletins, :date, :date
rename_column :bulletins, :date_updated, :updated_on
end
def self.down
rename_column :bulletins, :updated_on, :date_updated
remove_column :bulletins, :date
end
end
| Ruby |
class CreateSections < ActiveRecord::Migration
def self.up
create_table "sections" do |t|
t.column "bulletin_id", :integer, :default => 0, :null => false
t.column "name", :string, :default => "", :null => false
t.column "title", :text
t.col... | Ruby |
class AddLayoutType < ActiveRecord::Migration
def self.up
add_column :templet_layouts, :filter, :string, :limit => 20, :null => true
end
def self.down
remove_column :templet_layouts, :filter
end
end
| Ruby |
class CreateProjectGroups < ActiveRecord::Migration
def self.up
create_table :project_groups do |t|
t.column :name, :string, :null => false
t.column :created_on, :datetime
end
# insert default entry
pg = ProjectGroup.new( :name => 'Default' )
pg.save
add_column :recipient... | Ruby |
class AddBulletinRecipientFilter < ActiveRecord::Migration
def self.up
add_column :bulletins, :filter_raw, :text, :null => true
end
def self.down
remove_column :bulletins, :filter_raw
end
end
| Ruby |
class CreateProjects < ActiveRecord::Migration
def self.up
create_table "projects" do |t|
t.column "name", :string, :limit => 50, :default => "", :null => false
t.column "sender", :string, :limit => 100, :default => "", :null => false
t.column "report_recipients", ... | Ruby |
class AssocPagesWithBulletins < ActiveRecord::Migration
def self.up
add_column :content_pages, :bulletin_id, :integer, :null => false
remove_column :content_pages, :project_id
end
def self.down
raise IrreversibleMigration
end
end
| Ruby |
class FixDates < ActiveRecord::Migration
def self.up
rename_column :tags, :create_on, :created_on
rename_column :templets, :date_created, :created_on
rename_column :templets, :date_updated, :updated_on
rename_column :templet_layouts, :date_created, :created_on
rename_column :templet_layouts, :date... | Ruby |
class RemoveOldRecipientFields < ActiveRecord::Migration
def self.up
remove_column :recipients, :project_id
remove_column :recipients, :state
remove_column :recipients, :confirm_code
remove_column :recipients, :pass
end
def self.down
raise IrreversibleMigration
end
end
| Ruby |
class AddRecipientRealConfirm < ActiveRecord::Migration
def self.up
add_column :recipients, :confirmed_real, :boolean, :default => 0
end
def self.down
remove_columne :recipients, :confirmed_real
end
end
| Ruby |
#
# Link table between Content Pages and Tags
class CreateContentPageTags < ActiveRecord::Migration
def self.up
create_table(:content_page_tags, :id => false) do |t|
t.column :content_page_id, :integer, :null => false
t.column :tag_id, :integer, :null => false
end
end
def self.down
drop_t... | Ruby |
class CreateSubscriptions < ActiveRecord::Migration
def self.up
create_table "subscriptions" do |t|
t.column "recipient_id", :integer, :default => 0, :null => false
t.column "project_id", :integer, :default => 0, :null => false
t.column "state", :string... | Ruby |
class CreateContentPages < ActiveRecord::Migration
def self.up
create_table :content_pages do |t|
t.column :project_id, :integer, :null => false
t.column :templet_id, :integer, :null => false
t.column :name, :string, :null => false
t.column :status, :string, :null => false, :default => 'O'... | Ruby |
class CreateUserRoles < ActiveRecord::Migration
def self.up
create_table "user_roles" do |t|
t.column "user_id", :integer, :null => false
t.column "project_id", :integer, :null => false
t.column "edit_project", :boolean, :default => fal... | Ruby |
class CreateBulletinLayouts < ActiveRecord::Migration
def self.up
create_table "bulletin_layouts" do |t|
t.column "bulletin_id", :integer, :default => 0, :null => false
t.column "name", :string, :limit => 30, :default => "", :null => false
t.column "filetype", :s... | Ruby |
class AddUserRoles < ActiveRecord::Migration
def self.up
add_column :user_roles, "edit_pages", :boolean, :default => false, :null => false
add_column :user_roles, "edit_files", :boolean, :default => false, :null => false
end
def self.down
remove_column :user_roles, "edit_pages"
remove_col... | Ruby |
class CreateRecipientEmailReceipts < ActiveRecord::Migration
def self.up
create_table "recipient_email_receipts", :id => false do |t|
t.column "bulletin_id", :integer, :default => 0, :null => false
t.column "recipient_id", :integer, :default => 0, :null => false
t.co... | Ruby |
class CreateRecipients < ActiveRecord::Migration
def self.up
create_table "recipients" do |t|
t.column "project_id", :integer, :limit => 10, :default => 0, :null => false
t.column "email", :string, :default => "", :null => false
t.column "pass", :string... | Ruby |
class PagesMediaLink < ActiveRecord::Migration
def self.up
add_column :content_pages, :media_url, :string, :null => true
end
def self.down
remove_column :content_pages, :media_url
end
end
| Ruby |
class CreateLayouts < ActiveRecord::Migration
def self.up
#create_table :layouts do |t|
# t.column :name, :string
#end
end
def self.down
#drop_table :layouts
end
end
| Ruby |
class MoveSubscriptions < ActiveRecord::Migration
def self.up
# go through each project and their recipients, create each one a new subscription entry
# if they don't already have one
Project.find(:all).each do | project |
puts "Updating project: " + project.name
count = 0
skipped =... | Ruby |
class CreateRecipientReceipts < ActiveRecord::Migration
def self.up
create_table "recipient_receipts" do |t|
t.column "bulletin_id", :integer, :default => 0, :null => false
t.column "recipient_id", :integer, :default => 0, :null => false
t.column "status", :str... | Ruby |
class CreateTags < ActiveRecord::Migration
def self.up
create_table :tags do |t|
t.column :name, :string
t.column :create_on, :datetime
end
end
def self.down
drop_table :tags
end
end
| Ruby |
class ChangeRecipientDates < ActiveRecord::Migration
def self.up
add_column :recipients, :new_data, :text, :null => true
rename_column :recipients, :date_created, :created_on
rename_column :recipients, :date_updated, :updated_on
end
def self.down
remove_column :recipients, :new_data
rename_co... | Ruby |
class CreateEntries < ActiveRecord::Migration
def self.up
create_table "entries" do |t|
t.column "section_id", :integer, :default => 0, :null => false
t.column "title", :text, :default => "", :null => false
t.column "subtitle", :text
t.colum... | Ruby |
#
# A set of functions used to generate URLs to internal areas of bcomposer.
#
# This is needed as both models and controllers require access to these
# links.
#
class BcomposerUrlWriter
include ActionController::UrlWriter
@@instance = nil
# Create an instance of the class so that calls can be made
# to t... | Ruby |
#
# Provide extra support functions for the link between recipients and projects.
#
# These functions should be bi-directional, unless stated otherwise.
#
module RecipientAssociationHelper
def valid
find(:all, :conditions => ['subscriptions.status = "C" OR subscriptions.status = "F"'])
end
def valid_... | Ruby |
#
# Provide a set of functions to allow email addresses to be imported
# into BComposer.
#
require 'fastercsv'
module RecipientImporter
# Read the provided file as CSV and go through each line.
#
# The status of entry is printed to the stdout, unless a code
# block is provided in which case a message is ... | Ruby |
class TempletExporter
attr_accessor :name
attr_accessor :type, :filter
attr_accessor :subject, :description
attr_accessor :updated_on, :created_on
attr_accessor :filetype, :charset
@@basedir = 'db/templets/'
def initialize(templet = nil, layout = nil)
if (templet and layout)
self.name = tem... | Ruby |
#
# = Save and Load the default templets
#
# Used during development and modifications of the default templets
# which are stored in the database.
#
# Custom YAML and rhtml files are used to store and load the templets
# based on their names (not IDs!)
#
# == Saving Templets
#
# Templets are stored int he db/templet... | Ruby |
#
# = Save and Load the default templets
#
# Used during development and modifications of the default templets
# which are stored in the database.
#
# Custom YAML and rhtml files are used to store and load the templets
# based on their names (not IDs!)
#
# == Saving Templets
#
# Templets are stored int he db/templet... | Ruby |
# Provide all the bcomposer liquid libraries ready for use.
require 'bcomposer_liquid/loader.rb'
#require 'bcomposer_liquid/bulletin_helper.rb'
require 'bcomposer_liquid/link_helper.rb'
#require 'bcomposer_liquid/recipient_helper.rb'
Dir[File.dirname(__FILE__) + '/bcomposer_liquid/tags/*.rb'].each { |f| require f }
... | Ruby |
#
# Functions provided to a bulletin while it is being rendered.
#
# This is used Only by the ERB rendering method.
#
module BulletinRenderMethods
def base_url
link_helper.url_for_project_directory(bulletin.project)
end
def url_for_media(file)
link_helper.url_for_media(bulletin.project, file)
end... | Ruby |
#
# = Bcomposer Liquid Section block
#
# Provides a section object and hash for the current block.
#
# If no section is found matching the provided name and a controller
# object is provided in the context registers, then a new section
# and sample entry will be created with the same name. This makes
# producing new... | Ruby |
#
# Liquid Entries
#
# Finds the last section from the context and goes through each of its entries.
#
# Does not require any additional parameters as the section is taken from
# the current section. It does however require that the section have been
# declared previously.
#
class BcomposerLiquid::Tags::Entries < Li... | Ruby |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.