sns_extension.rb
# Defines this extension's default regions (so that we can incorporate shards
# into its views).
Defines this extension's default regions (so that we can incorporate shards
into its views).
Defines this extension ' s default regions ( so that we can incorporate shards into its views ) .
def load_default_text_assets_regions
      returning OpenStruct.new do |text_asset|
        text_asset.index = Radiant::AdminUI::RegionSet.new do |index|
          index.top.concat %w{}
        end
        text_asset.edit = Radiant::AdminUI::RegionSet.new do |edit|
          edit.main.concat %w{edit_header edit_form}
          edit.form.concat %w{edit_title edit_content edit_timestamp}
          edit.content_bottom.concat %w{edit_filter}
          edit.form_bottom.concat %w{edit_buttons}
        end
        text_asset.new = text_asset.edit
      end
    end
def load_default_text_assets_regions returning OpenStruct . new do | text_asset | text_asset . index = Radiant :: AdminUI :: RegionSet . new do | index | index . top . concat %w{ } end text_asset . edit = Radiant :: AdminUI :: RegionSet . new do | edit | edit . main . concat %w{ edit_header edit_form } edit . form . concat %w{ edit_title edit_content edit_timestamp } edit . content_bottom . concat %w{ edit_filter } edit . form_bottom . concat %w{ edit_buttons } end text_asset . new = text_asset . edit end end
Defines this extension's default regions (so that we can incorporate shards
into its views).
Defines this extension ' s default regions ( so that we can incorporate shards into its views ) .